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 :)

Comments

Popular posts from this blog

Writing your own ejabberd Module

Conditional Flow - Spring Batch Part 6