脚本之家收集整理的这篇文章主要介绍了npm install error在phantomjs@1.9.12安装脚本失败,脚本之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随脚本之家小编过来看看吧!
npm ERR! Windows_NT 6.1.7601 npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Users\\Username\\AppData\\Roaming\\npm\\node_modules\\n pm\\bin\\npm-cli.js" "install" npm ERR! node v0.10.33 npm ERR! npm v2.1.5 npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! phantomjs@1.9.12 install: `node install.js` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the phantomjs@1.9.12 install script. npm ERR! This is most likely a problem with the phantomjs package,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 their info via: npm ERR! npm owner ls phantomjs npm ERR! There is likely additional logging output above.
>通过下载和解压缩,在本地安装最新版本的phantomjs(目前为phantomjs-1.9.8-windows).我有一个以前的版本与phantomjs npm包不兼容.
>更新环境变量以指向最新版本的phantomjs.exe(PHANTOMJS_HOME).
>退出并重新启动Windows提示符或shell以识别变量.
>现在,npm install或具体来说,npm install phantomjs@1.9.12应该可以正常工作.
您可以使用git bash shell或命令提示符中的phantomjs和phantomjs -v测试本地phantomjs可执行安装.
以上是脚本之家为你收集整理的npm install error在phantomjs@1.9.12安装脚本失败全部内容,希望文章能够帮你解决npm install error在phantomjs@1.9.12安装脚本失败所遇到的程序开发问题。
如果觉得脚本之家网站内容还不错,欢迎将脚本之家网站推荐给程序员好友。
微信公众号搜索 “ 程序精选 ” ,选择关注!
精选程序员所需精品干货内容!
微信公众号搜索 “ 程序精选 ”
精选程序员所需精品干货内容!