npm install 时报 phantomjs-prebuilt@2.1.14 安装失败解决方案

来源:互联网 发布:c语言命令大全 编辑:程序博客网 时间:2024/05/29 14:39

错误如下

npm ERR! Windows_NT 10.0.14393npm ERR! argv "E:\\pro\\nodejs\\node.exe" "E:\\pro\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"npm ERR! node v6.10.3npm ERR! npm  v3.10.10npm ERR! code ELIFECYCLEnpm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`npm ERR! Exit status 1npm 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 package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR!     node install.jsnpm ERR! You can get information on how to open an issue for this project with:npm ERR!     npm bugs phantomjs-prebuiltnpm ERR! Or if that isn't available, you can get their info via:npm ERR!     npm owner ls phantomjs-prebuiltnpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR!     E:\project\yiliang_backstage\backstage-ui\vue-project\npm-debug.log


输入如下代码解决

npm install phantomjs-prebuilt@2.1.14 --ignore-scripts



阅读全文
0 0
原创粉丝点击