Development·1 min read
Downloading npm packages behind a proxy
How to install npm packages from inside a network with 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_CHAINnpm ERR! self signed certificate in certificate chainnpm ERR! A complete log of this run can be found in:npm ERR! /home/tgmarinho/.npm/_logs/2018–01–09T13_25_08_875Z-debug.logThe fix was running:
npm config set strict-ssl falseAnd then:
npm installThat's it — the dependencies downloaded just fine!
Written by AI, reviewed by Thiago Marinho
September 1, 2018 · Brazil