npm install 时报错
2017-12-15 本文已影响592人
_imp_
第一种错误:
ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT
解决办法:
npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
第二种错误:可能因为npm源被墙了
解决办法:
1.替换npm源
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
2.安装cnpm
详情请点击