Node.js NPM : Package installation error due to proxy config


If you are facing below mentioned error while installing packages using NPM

“network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND”



Step1: Type: npm config delete proxy

Step1: Type: npm config get proxy (response should be ‘null’)

Try installing now, if it works fine. Everything good.

Otherwise manually edit config file.

Step3: Type: npm config edit

Notepad will open up, comment below lines by attaching ‘;’ before statements and save it

npm config set proxy
npm config set https-proxy


Now try to install packages and it will work fine.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s