天天看点

npm install:ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT

在github上下载了一个项目,在npm install 过程中报错如下

        npm install:ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT

错误原因:

        由于某些不可描述的原因,chromeDriver在npm 的源不可用,因此只需要用taobao源安装ChromeDriver

代码如下:

npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
           

安装完成,重新执行npm install

继续阅读