请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

npm run dev 运行不了

npm ERR! Darwin 16.1.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"

npm ERR! node v7.2.0

npm ERR! npm  v4.0.3

npm ERR! code ELIFECYCLE

npm ERR! yyqc@1.0.0 dev: `node build/dev-server.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the yyqc@1.0.0 dev script 'node build/dev-server.js'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the yyqc package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     node build/dev-server.js

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs yyqc

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls yyqc

npm ERR! There is likely additional logging output above.


npm ERR! Please include the following file with any support request:

npm ERR!     /Users/fangzide/yyqc/npm-debug.log



npm run dev 运行不了

正在回答

2回答

NeurotoxinVX 2016-12-09 22:45:34

可能是 Node 和 npm 版本过高导致 ,建议安装 4.x 的再试一下 ~

0 回复 有任何疑惑可以回复我~
  • 提问者 房自德 #1
    已经解决了。多谢大神。正在看视频。很不错,感觉后面干货好多。刚入门Vue ,公司让用Vue 开发项目。希望周末这两天看看。。周一能开始着手项目。
    回复 有任何疑惑可以回复我~ 2016-12-09 22:55:27
  • zhangweb 回复 提问者 房自德 #2
    请问你的node版本是多高的?npm版本又是多高?
    回复 有任何疑惑可以回复我~ 2016-12-16 17:20:59
慕前端7793024 2017-10-10 10:50:47

https://img1.sycdn.imooc.com/szimg//59dc35560001137201900277.jpg

打开任务管理器,把node.exe退出后,再npm run dev就可以启动了

2 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信