npm install 報錯chromedriver 記錄_nam

來源:互聯網
上載者:User

系統版本:osx 10.11.3

➜ npm installnpm 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.jsDownloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_mac32.zipSaving to /var/folders/f2/_jd2rvp15jg_pzsfr2zm7cnh0000gn/T/chromedriver/chromedriver_mac32.zipReceiving...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.0npm ERR! argv "/usr/local/Cellar/node/6.3.0/bin/node" "/usr/local/bin/npm" "install"npm ERR! node v6.3.0npm ERR! npm  v3.10.3npm ERR! code ELIFECYCLE......

後來看到有一個issue261,執行後解決了

➜  flow-wisedu npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedrivernpm 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.jsDownloading http://cdn.npm.taobao.org/dist/chromedriver/2.21/chromedriver_mac32.zipSaving to /var/folders/f2/_jd2rvp15jg_pzsfr2zm7cnh0000gn/T/chromedriver/chromedriver_mac32.zipReceiving...Received 781K...Received 1563K...Received 2345K...Received 3127K...Received 3639K total.Extracting zip contentsCopying to target path /Users/user/wisedu/flow-wisedu/node_modules/chromedriver/lib/chromedriverFixing file permissionsDone. ChromeDriver binary available at /Users/user/wisedu/flow-wisedu/node_modules/chromedriver/lib/chromedriver/chromedriverflow-wisedu@1.0.0 /Users/user/wisedu/flow-wisedu

END

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.