npm install not workjing behind proxy 1

npm install not workjing behind proxy

npm config set strict-ssl false

# Set npm to use http instead of https
npm config set registry "http://registry.npmjs.org/"

# install your package with below syntax, can leave out the
# username:password section if your proxy does not require
# you to authenticate. The "http://" part is very important
npm --proxy http://username:password@cacheaddress.com.br:80 install packagename

Here is what the above code is Doing:
1. Set the proxy address and port
2. Set the proxy username and password
3. Set the proxy to use http instead of https
4. Set the proxy to use http instead of https
5. Install your package with the proxy settings

Similar Posts