npm install:ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT
2017-11-28 09:32
441 查看
项目使用vue开发,通过npm install安装全局依赖的时候,出错了,卡在了chromedriver的地方,日志内容
huyikangdeMacBook-Pro:vbap-widgets kangkang$ npm install
> chromedriver@2.33.2 install /Users/kangkang/vbap-widgets/node_modules/chromedriver
> node install.js
Downloading https://chromedriver.storage.googleapis.com/2.33/chromedriver_mac64.zip Saving to /var/folders/6_/vt2sqf214dn36kyl97183j6c0000gn/T/chromedriver/chromedriver_mac64.zip
ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT
npm WARN vbap-widgets@3.0.6-SNAPSHOT No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.33.2 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.33.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kangkang/.npm/_logs/2017-11-28T01_10_25_967Z-debug.log
显示在chromedriver@2.33.2 install script的时候失败了,把连接复制到浏览器,就是访问不了啦,只能找一个国内的镜像源安装,首先想到的就是淘宝的镜像源。解决办法:npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver运行安装成功
huyikangdeMacBook-Pro:vbap-widgets kangkang$ npm install
> chromedriver@2.33.2 install /Users/kangkang/vbap-widgets/node_modules/chromedriver
> node install.js
Downloading https://chromedriver.storage.googleapis.com/2.33/chromedriver_mac64.zip Saving to /var/folders/6_/vt2sqf214dn36kyl97183j6c0000gn/T/chromedriver/chromedriver_mac64.zip
ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT
npm WARN vbap-widgets@3.0.6-SNAPSHOT No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.33.2 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.33.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kangkang/.npm/_logs/2017-11-28T01_10_25_967Z-debug.log
显示在chromedriver@2.33.2 install script的时候失败了,把连接复制到浏览器,就是访问不了啦,只能找一个国内的镜像源安装,首先想到的就是淘宝的镜像源。解决办法:npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver运行安装成功
huyikangdeMacBook-Pro:vbap-widgets kangkang$ npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver > chromedriver@2.33.2 install /Users/kangkang/vbap-widgets/node_modules/chromedriver > node install.js Downloading http://npm.taobao.org/mirrors/chromedriver/2.33/chromedriver_mac64.zip Saving to /var/folders/6_/vt2sqf214dn36kyl97183j6c0000gn/T/chromedriver/chromedriver_mac64.zip Received 783K... Received 1564K... Received 2348K... Received 3131K... Received 3914K... Received 4695K... Received 5299K total. Extracting zip contents Copying to target path /Users/kangkang/vbap-widgets/node_modules/chromedriver/lib/chromedriver Fixing file permissions Done. ChromeDriver binary available at /Users/kangkang/vbap-widgets/node_modules/chromedriver/lib/chromedriver/chromedriver npm WARN vbap-widgets@3.0.6-SNAPSHOT No license field. + chromedriver@2.33.2 added 2 packages in 13.709s
相关文章推荐
- Web Service Error: “The request failed with HTTP status 401: Unauthorized.”-ZT
- Web Service Error: “The request failed with HTTP status 401: Unauthorized.”
- Web Service Error: “The request failed with HTTP status 401: Unauthorized.”
- The request failed with HTTP status 401: Access Denied
- git报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- git错误提示error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- git clone 下载速度0bytes 出现error: RPC failed; curl 18 transfer closed with outstanding read data 解决办法
- Paypal SDK PayPal SDK: Request has failed with error: PAYMENT_CREATION_ERROR (422)
- How to deal with "Incorrect NSStringEncoding value 0×0000 Error with ASIHTTPRequest" problem?
- Error Domain=ASIHTTPRequestErrorDomain Code=8 "Failed to move file from"xxx/xxx"to"xxx/xxx"
- php file_get_contents()报错 failed to open stream: HTTP request failed!、Internal Server Error
- 【Error】JavaWeb: 严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
- error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- Push failed Failed with error failed; result=22, HTTP code = 411
- IDEA Push Failed with error: fatal: Could not read from remote repository
- The request failed with HTTP status 401:Access Denied
- Git 报错:git - error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决方案
- Android Installation failed with message INSTALL_FAILED_INTERNAL_ERROR
- 【Error】JavaWeb: 严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
- java报错-->Error creating bean with name 'org.springframework.web.servlet.resource.ResourceHttpRequest