NPM doesn't install any modules: network socket hangs up

后端 未结 8 1960
醉酒成梦
醉酒成梦 2020-11-30 01:26

Salam (means Hello) :)

I have the latest version of node.js installed on ubuntu 12.04, I\'m not behind any proxies, and my network settings are correctly configured,

8条回答
  •  甜味超标
    2020-11-30 01:49

    If you are behind a proxy that has username and password authentication, try setting the proxy as

    npm config set proxy http://username:encodedpassword@proxyaddress:port

    npm config set https-proxy http://username:encodedpassword@proxyaddress:port

提交回复
热议问题