NPM unable to authenticate with proxy

Scenario: Trying to install package with NPM, but it is unable to authenticate with the proxy


Solution:

Connecting npm proxy through Telerik Fiddler

  1. Tools > Options
  2. Act as system proxy on startup
  3. Remember the listen port
  4. Under Rules > Automatically Authenticate  (Check this)
  5. Set proxy to point to use fiddler as proxy, proxy address is http://localhost:<port from previous setting>
  6. npm config set proxy http://localhost:8888
  7. npm config set https-proxy http://localhost:8888
  8. Run your install command, it should be working as expected.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s