使用vue-cli创建完项目 安装依赖时候报错
发布于 6个月前 作者 zhangfan6644777 798 次浏览 来自 问答

npm ERR! Windows_NT 6.1.7601 npm ERR! argv “D:\Program Files\nodejs\node.exe” “D:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js” “install” npm ERR! node v7.3.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! phantomjs-prebuilt@2.1.14 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script 'node install.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 phantomjs-prebuilt pa ckage, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs phantomjs-prebuilt npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls phantomjs-prebuilt npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Administrator\Desktop\test\npm-debug.log

4 回复

我的node版本 7.3.0 npm版本3.10.10
然后package.json里面 是node>=4.0.0 npm>=3.0.0

在控制台输出node -v看看没安装成功Node.js

@buchoo 不是node的问题 我找到原因了 是我网络了问题 以及好像windows7 不太支持phantomjs

回到顶部