问题
I have done the following steps before installing the module express
.
However I am getting a 403 error
.
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm config set proxy http://user:password@host:port
npm config set https-proxy http://user:password@host:port
ERROR
npm ERR! code E403
npm ERR! 403 Forbidden: express@latest
回答1:
Issue is resolved . The problem was with the proxy address itself. my company uses a pac file . Network team had given me one proxy address to try.But it was not helping. I downloaded the pac. and tried with a new proxy address . And the 403 forbidden issue was resolved as proper authorization was done.
来源:https://stackoverflow.com/questions/47525368/npm-install-express-save-command-gives-403-forbidden-error-even-after-setting