2

I upgraded to latest npm 5 today and it started throwing me following error.

npm ERR! code E407
npm ERR! 407 Proxy Authorization Required: <node-module>

I have proxy setting configured in .npmrc file. Does NPM 5 maintain any other file for proxy setting?

RickDavis
  • 2,276
  • 6
  • 25
  • 31

2 Answers2

2

I too was facing the same issue but I believe my issue was due to NTLM authentication as I was on windows (sigh!).

If you too are on windows, follow these steps:

  1. Install fiddler
  2. Open Fiddler -> Rules -> Automatically Authenticate
  3. Change proxy and https-proxy of npm to "http://localhost:8888"

try running npm install now.

Note: You may need to change proxy settings of Git too.

ghostCoder
  • 31
  • 6
0

I could fix it by deleting npm folder from AppData/ And then ran

npm cache clean

and reinstalled npm using

npm i -g npm@latest
RickDavis
  • 2,276
  • 6
  • 25
  • 31