Wednesday, 11 May 2016

npm ECONNREFUSED error

If you face error which says ECONNREFUSED while doing npm install <<package name>>, you are probably behind a proxy which is not allowing you to connect to the server and download the packages required.

Just follow the below steps:

npm config set proxy  http://your_proxy_name:port
npm config set https-proxy https://your_proxy_name:port

And then try npm install

How to get npm config?

npm get proxy

will do the work :)

No comments:

Post a Comment