npm run serve 在构建时挂起 98% [英] npm run serve gets hang on 98% while building

查看:605
本文介绍了npm run serve 在构建时挂起 98%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 vuetify 进行一个项目.我正在使用npm run serve"命令来构建和运行一个实时服务器.它运行良好,直到我的项目突然停止构建.每次我尝试运行命令npm run serve"时,它都会构建并挂起 98%,而不会引发错误.

I'm working on a project using vuetify. I was using "npm run serve" command to build and run a live server. it was working all good until all of sudden my project stopped building. every time i try running the command "npm run serve" it builds and hangs on 98% without throwing an error.

我试过 npm install.npm build 这些都不能解决问题

i tried npm install. npm build none of these fix the issue

在我的终端中运行这个命令,结果如下:

in my terminal i run this command and the result is as follows:

npm run serve
rep-vuetify@0.1.0 serve /Users/Desktop/rg21-vuetify/rep-vuetify vue-cli-service serve
INFO  Starting development server...
98% after emitting CopyPlugin

IT 挂起 98% 并且在此之后不做任何事情,如果有人可以帮助我,请在这一步上停留整整一周.

IT hangs on 98% and don't do anything after this, been stuck on this step for whole week if some one can help me.

推荐答案

我有同样的问题卡在 98%.

I have same problem stuck in 98%.

发出 CopyPlugin 后 98%

98% after emitting CopyPlugin

就我而言,我再次检查了我的代码,发现我的导入路径无效,例如:

In my case, I recheck again my code, and I found my import path is invalid, something like :

import { myComponent } from ''

修复代码后,它再次工作.

After fix the code, It works again.

这篇关于npm run serve 在构建时挂起 98%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆