您的当前位置:首页正文

npm install 时报错

来源:图艺博知识网

第一种错误:

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
Top