-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run dev error #118
Comments
请问已经更新到最新的源代码了吗? |
恩,是的,更新的最新代码。就是跑步起来,报上面的错 |
说下你的环境,node、npm 等。 |
$ node -v |
me too |
Retry after |
@torresyb @qcdys Is it still here? |
我的情况也是报一样的错,是不是用 cnpm install 的原因?npm run dev/build error |
Following the steps:
|
Me too. webpack 2.1.0-beta.25 command: npm i -d
etc... |
好了 |
@qcdys 请问你是按照我的步骤来的吗? |
@fundon 是的 |
@qcdys 左侧菜单是可以收起的,浏览器宽度小于768就会自动隐藏菜单并在左上角显示打开菜单的按钮。 |
@luventa 好的、 谢啦 |
Sorry guys. I'm a Dutch guy. I can't read chinese. |
@violacase qcdys strictly followed the steps that Fundon mentioned, and it worked fine. |
我在国内,用cnpm,还是报同样的错 |
Thx, luventa. Sure this is tested on WIndows10 OS machine? Error log:
|
@violacase can you check whether file |
It works! |
刚开始我也是怎么都报错,重新搞一下依赖也好了,还有你的 webpack配置项我貌似在哪见过 |
@fundon 没问题 |
I found out why it didn't work with me. This webpack uses port 8080. If this port is already served by another process the built errors. |
@violacase I added an option We can set env for running. If you use fish shell, try |
为什么一直报错呢,npm i -d,是window 10的原因吗。。 |
@hjpyh-ybxrz 试过清空 |
@atmfans 请问,你是如何从新搞一下依赖的? |
Me too,fuck,沒有一次能跑成功 |
Try yarn. 跑不成功可能是因为依赖下载的问题。 |
@figoxu 按这个步骤解决了吗? #118 (comment) |
Centos7 上面npm run dev error报错解决方法:
|
你好 我用了vue.cli已经成功运行了localhost:8080的cli模板了 然后关机睡觉了 第二天还在原路径下运行cpn run dev .命令行窗口说is related to npm not being able to find a file... |
@soloSpring 你这个是vue-cli的问题吧? cpn是哪个? |
@luventa npm run dev 就是运行的那个命令 昨天输入这行命令之后 就直接打开模板了 今天就说 related to npm not being able to find a file... |
@soloSpring 找个文件夹重新运行这些命令吧。这个错误信息很多情况都会出现,比如有可能你运行npm run dev的路径不正确。
另外强烈推荐用yarn,国内不成功的情况大多是因为网络问题导致依赖下载失败。 |
@luventa 啊..又要重新建立一个模板啊 我看了下 我进入了模板路径 就是cd text 后 再运行npm run dev 就弹出来这个 npm ERR! Windows_NT 10.0.10586 npm ERR! Please include the following file with any support request: 我粗略看了下 好像说我npm 和node版本不对 可是npm和node是我昨天才下的 并且成功运行过的啊..TAT |
@soloSpring 不是node版本问题。 npm run dev的位置有问题吧 |
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\gsb\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "node-sass" "-d" npm ERR! node-sass@4.5.0 postinstall: npm ERR! Please include the following file with any support request: |
@guoshengbo 我记得node-sass需要python 2.x |
都是 node-sass 的锅 |
change the config >index.js port: 8080 to other port eg, port: 8081 |
以下是报错信息,不知道怎么回事?求解
ERROR in ./
/.0.0.1@vue-bulma-jump/src/index.js/.6.2.8@babel-loader/lib!./~/.10.0.2@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/BackToTop.vue 50:0-43Module parse failed: G:\works\vue-admin\node_modules.0.0.1@vue-bulma-jump\src\index.js Unexpected token (1:7)
You may need an appropriate loader to handle this file type.
| export BackToTop from './BackToTop'
| export default from './Jump'
|
@ ./
@ ./client/views/components/BackToTop.vue
@ ./client/views async ^./.*.vue$
@ ./client/store/modules/menu/lazyLoading.js
@ ./client/store/modules/menu/index.js
@ ./client/router/index.js
@ ./client/app.js
@ ./client/index.js
@ multi app
ERROR in ./
/.0.0.1@vue-bulma-emoji/src/index.js/.6.2.8@babel-loader/lib!./~/.10.0.2@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/Emoji.vue 52:0-52Module parse failed: G:\works\vue-admin\node_modules.0.0.1@vue-bulma-emoji\src\index.js Unexpected token (1:7)
You may need an appropriate loader to handle this file type.
| export filter from './filter'
|
| export EmojiIcon from './EmojiIcon'
@ ./
@ ./client/views/components/Emoji.vue
@ ./client/views async ^./.*.vue$
@ ./client/store/modules/menu/lazyLoading.js
@ ./client/store/modules/menu/index.js
@ ./client/router/index.js
@ ./client/app.js
@ ./client/index.js
@ multi app
ERROR in ./
/.0.0.4@vue-bulma-progress-tracker/src/index.js/.6.2.8@babel-loader/lib!./~/.10.0.2@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/ProgressTracker.vue 76 :0-71Module parse failed: G:\works\vue-admin\node_modules.0.0.4@vue-bulma-progress-tracker\src\index.js Unexpected token (1:7)
You may need an appropriate loader to handle this file type.
| export StepItem from './StepItem'
| export default from './Tracker'
|
@ ./
@ ./client/views/components/ProgressTracker.vue
@ ./client/views async ^./.*.vue$
@ ./client/store/modules/menu/lazyLoading.js
@ ./client/store/modules/menu/index.js
@ ./client/router/index.js
@ ./client/app.js
@ ./client/index.js
@ multi app
The text was updated successfully, but these errors were encountered: