Thursday 6 June 2019

Quick start for npm under proxy [POC/Learning purpose only]


NPM (Node Package Manager) is the default package manager for Node.js. Setting up NPM for downloading packages, one common issue is working behind the corporate proxy. 

Below is a workable solution - 


Fire up your command line and type in the following:


npm config set proxy http://<proxy_user_id>:<password>@<proxy_url>:<proxy_port>


npm config set https-proxy https://<proxy_user_id>:<password>@<proxy_url>:
<proxy_port>




Note: For https_proxy url starts with https.



If you get error like "SSL routines:ssl3_get_record:wrong version number" then you have problem with the entry you made above for https_proxy.
  • If SSl not configured properly then try not to use https_proxy command above.

There is one file which maintains all entries related to npm - C:\Users\<account_id>\.npmrc See if you have proper entries inside of that. You can make the changes there as well.

No comments:

Post a Comment

Make life easier — Git automation with single command file

Make life easier — Git automation with single command file Posted on medium #makelifeeasier series - Automation of git related activity...