npm behind a proxy fails with status 403

前端 未结 9 1238
野趣味
野趣味 2020-12-04 07:24

I\'m trying to run npm behind a proxy. I\'ve tried both entering the proxy directly or through Authoxy:

npm config set proxy http://localho         


        
9条回答
  •  -上瘾入骨i
    2020-12-04 08:04

    npm config set proxy http://proxy.company.com:8080
    npm config set https-proxy http://proxy.company.com:8080
    

    credit goes to http://jjasonclark.com/how-to-setup-node-behind-web-proxy.

提交回复
热议问题