npm install express --save command gives 403 forbidden error even after setting proxy

假装没事ソ 提交于 2021-02-10 20:52:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!