当前位置:   article > 正文

npm install 报错chromedriver 记录_know unknown through known

know unknown through known

系统版本:osx 10.11.3

npm install
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

> chromedriver@2.21.2 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
......
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24

后来看到有一个issue261,执行后解决了

➜  flow-wisedu npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

> chromedriver@2.21.2 install /Users/user/wisedu/flow-wisedu/node_modules/chromedriver
> node install.js

Downloading http://cdn.npm.taobao.org/dist/chromedriver/2.21/chromedriver_mac32.zip
Saving to /var/folders/f2/_jd2rvp15jg_pzsfr2zm7cnh0000gn/T/chromedriver/chromedriver_mac32.zip
Receiving...
Received 781K...
Received 1563K...
Received 2345K...
Received 3127K...
Received 3639K total.
Extracting zip contents
Copying to target path /Users/user/wisedu/flow-wisedu/node_modules/chromedriver/lib/chromedriver
Fixing file permissions
Done. ChromeDriver binary available at /Users/user/wisedu/flow-wisedu/node_modules/chromedriver/lib/chromedriver/chromedriver
flow-wisedu@1.0.0 /Users/user/wisedu/flow-wisedu
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

END

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/593231
推荐阅读
相关标签
  

闽ICP备14008679号