TG
Development·1 min read

Downloading npm packages behind a proxy

How to install npm packages from inside a network with a proxy.

Ler em português
Downloading npm packages behind a proxy

I cloned a project with npm packages and, when I ran npm install, I got this error:

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! self signed certificate in certificate chain
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tgmarinho/.npm/_logs/2018–01–09T13_25_08_875Z-debug.log

The fix was running:

npm config set strict-ssl false

And then:

npm install

That's it — the dependencies downloaded just fine!

Thiago Marinho

September 1, 2018 · Brazil