When I try to use npm install and work with proxy, I always get the network errors as below
The common solution that need to set the proxy with npm as below
npm config set proxy http://ip:port npm config set proxy https-proxy http://ip:port
But that’s not working for me, and finally I found that need to add one more as below
npm config set registry http://registry.npmjs.org/ npm set strict-ssl false
After that it working
The post npm works with proxy first appeared on Coder Blog.