Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm install webdriverio -g giving proxy error #21184

Open
1 task
chandnarendra2409 opened this issue Jul 10, 2018 · 7 comments
Open
1 task

npm install webdriverio -g giving proxy error #21184

chandnarendra2409 opened this issue Jul 10, 2018 · 7 comments

Comments

@chandnarendra2409
Copy link

I'm opening this issue because:

I am getting error for below commands:

npm install webdriverio -g
npm install mocha -g
npm install should -g
npm install grunt -g 
npm install grunt -g 

Getting below error for all of them :
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/webdriverio failed, reaso
n: connect ETIMEDOUT 104.18.96.96:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nc442q\AppData\Roaming\npm-cache_logs\2018-07-10T14_10_50
_321Z-debug.log

supporting information:

  • npm -v prints: 5.6.0
  • node -v prints: v8.11.3
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?:Windows 7
  • Network issues: Using office network but having open network and also admin rights.
    • Geographic location where npm was run: India
    • I use a proxy to connect to the web.
@DanielRuf
Copy link

Please test if ping registry.npmjs.org on another computer also shows 104.18.96.96:443. And check if there is some firewall blocking the access.

@chandnarendra2409
Copy link
Author

Tried ping command and below is the result:

$ ping registry.npmjs.org

Pinging registry.npmjs.org [104.18.98.96] with 32 bytes of data:
Reply from 104.18.98.96: bytes=32 time=5ms TTL=53
Reply from 104.18.98.96: bytes=32 time=4ms TTL=53
Reply from 104.18.98.96: bytes=32 time=4ms TTL=53
Reply from 104.18.98.96: bytes=32 time=7ms TTL=53

Ping statistics for 104.18.98.96:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 4ms, Maximum = 7ms, Average = 5ms

Also,
I tried setting the proxy and https-proxy in the config file using npm set proxy command and tried npm install webdriverio command again and got below error:

$ npm install webdriverio
npm ERR! code E405
npm ERR! 405 Method Not Allowed: webdriverio@latest

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nc442q\AppData\Roaming\npm-cache_logs\2018-07-11T11_30_21_757Z-debug.log

@DanielRuf
Copy link

Can you try upgrading npm using npm i -g npm@latest?

@chandnarendra2409
Copy link
Author

chandnarendra2409 commented Jul 11, 2018

Same error :(
attached error log file

2018-07-11T12_43_24_998Z-debug.log

$ npm i -g npm@latest
npm ERR! code E405
npm ERR! 405 Method Not Allowed: npm@latest

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nc442q\AppData\Roaming\npm-cache_logs\2018-07-11T12_43_24_998Z-debug.log

@chandnarendra2409
Copy link
Author

I have attached log in above comment. Attaching here again.
2018-07-11T12_43_24_998Z-debug.log

@DanielRuf
Copy link

Mh, can you upgrade to Node.js 10 using the official installer to see if this works?

@chandnarendra2409
Copy link
Author

I updated to version 10. Still same error

$ npm install webdriverio
npm ERR! code E405
npm ERR! 405 Method Not Allowed: webdriverio@latest

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nc442q\AppData\Roaming\npm-cache_logs\2018-07-11T16_24_06_440Z-debug.log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants