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

后端 未结 8 1958
醉酒成梦
醉酒成梦 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:54

    I was having a similar issue with my windows machine and i fixed it by first checking whether my proxy got some value by executing the below command.

    npm config get proxy
    

    in return i got the below:

    http://usr:pwd@host/:port
    

    So if anyone who is not under a proxy layer first set the proxy as null by executing the below command.

    npm config set proxy null
    

    now if you excecute your npm i it should not throw any network error.

提交回复
热议问题