npm enterprise proxy error does not leave low packets

Asked

Viewed 72 times

0

npm enterprise proxy error does not leave low packets

npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@angular%2fcli failed, reason: connect ETIMEDOUT 1.2.3.4:8181
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 settings.
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\arbatista\AppData\Roaming\npm-cache\_logs\2018-09-21T15_20_16_930Z-debug.lo
  • Hello, set up the mpm proxy as link below. https://stackoverflow.com/questions/44405323/npm-install-angular-cli-error

  • Vlw worked well help me a lot!

1 answer

0

With your company’s proxy settings in hand, just run the two commands below:

npm config set proxy "<endereço e porta>"
npm config set https-proxy "<endereço e porta>"

Example 1: your company’s proxy configuration IP 192.168.10.1 with the gate 3128, we have,

npm config set proxy "http://192.168.10.1:3128"
npm config set https-proxy "http://192.168.10.1:3128"

If your company’s proxy has user and password, it is as below:

Example 2: your company’s proxy configuration IP 192.168.10.1 with the gate 3128, with the user admin and password 123456, we have,

npm config set proxy "http://admin@123456:192.168.10.1:3128"
npm config set https-proxy "http://admin@123456:192.168.10.1:3128"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.