node install.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.46.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.46.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
该问题是vue-cli脚手架的一个bug,原因是chromedriver的部分文件被国内网络给墙掉了,无法下载完整的chromedirver包,解决办法:
sudo npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
原文链接
https://www.jianshu.com/p/38a3c1513fbe
一般情况下都是因为使用官方默认源,可以采用换源的方法
或者可以清除一下缓存,
npm cache clean --force
并将原来的node_modules 文件夹删除 重新npm install
还未整理完整,以后添加。
原文:https://www.cnblogs.com/smren/p/13295280.html