Created
January 17, 2019 12:11
-
-
Save nijogeorgep/42c5ca531a091b3a2e72d8efbe827d24 to your computer and use it in GitHub Desktop.
Configure Proxy for NPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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