npm install Saving to file: /root/.jenkins/workspace/ems-web/node_modules/chromedriver/2

版权声明:本文为博主原创文章,转载请注明地址。技术交流群 QQ:206831226,备注CSDN。 https://blog.csdn.net/yanxilou/article/details/88977301

 问题 :

➜ npm install
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm

> [email protected] install /Users/user/wisedu/flow-wisedu/node_modules/chromedriver
> node install.js

Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_mac32.zip
Saving to /var/folders/f2/_jd2rvp15jg_pzsfr2zm7cnh0000gn/T/chromedriver/chromedriver_mac32.zip
Receiving...
Received 781K...
Received 1563K...
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1008:11)
    at TCP.onread (net.js:563:26)
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/Cellar/node/6.3.0/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
......

解决:

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

猜你喜欢

转载自blog.csdn.net/yanxilou/article/details/88977301