Skip to content

Instantly share code, notes, and snippets.

@nijogeorgep
Created January 17, 2019 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nijogeorgep/42c5ca531a091b3a2e72d8efbe827d24 to your computer and use it in GitHub Desktop.
Save nijogeorgep/42c5ca531a091b3a2e72d8efbe827d24 to your computer and use it in GitHub Desktop.
Configure Proxy for NPM
Usually developers face issues for downloading npm packages while they work behind proxy the below solution can fix their problems if they configure it properly
> npm config set strict-ssl false
> npm config set https-proxy http://<username>:<password>@proxy.[Company Name].com:[Port]
use the above commands to set proxy for NPM
To Verify the proxy settings for NPM
1. open .npmrc file from the users home folder and check whether an entry got created in it.
2. npm get https-proxy (View config in commandline)
for more npm config documentation:
https://docs.npmjs.com/cli/config.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment