npm install package using proxy


Sometimes you might not have access to direct internet and when that happens, you can be limited.
To get around this, you can authenticate yourself using proxy. Use the following command :-
where proyxserver.com is your proxy.

npm config set proxy http://"dev.username:password"@proxyserver.com:80
npm config set https-proxy http://"dev.username:password"@proxyserver.com:80

I also notice that setting this, results in 418 or probably 404.

npm config set registry "http://registry.npmjs.org/"

So if you have this, try to remove it using npm config edit


Also if you have some issues with certificate, you can probably set

npm set strict-ssl false


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm