npm works with proxy

orange pink keyboard

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
npm set strict-ssl false

After that it working 😀

 236 total views,  1 views today

Share your vote!

You may also like...

Translate »