报错信息类似于:
1462 error electron-chromedriver@3.0.0 install: `node ./download-chromedriver.js`
1462 error Exit status 1
1463 error Failed at the electron-chromedriver@3.0.0 install script.
1463 error This is probably not a problem with npm. There is likely additional logging output above.
解决方法:
指定chromedriver国内镜像下载地址,由于淘宝镜像域名变更了,以下为chromedriver的最新镜像地址:
npm install chromedriver --chromedriver_cdnurl=CNPM Binaries Mirror
https://npmmirror.com/mirrors/chromedriver/
这篇博客介绍了在安装electron-chromedriver过程中遇到的报错问题,错误信息涉及到npm安装失败和Exit status 1。解决方法是通过指定新的国内镜像地址,如使用npminstall命令并设置chromedriver_cdnurl为https://npmmirror.com/mirrors/chromedriver/,以确保能够成功下载chromedriver。


被折叠的 条评论
为什么被折叠?



