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

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

    I was having the same problem. Found a solution in this thread. You can see the effective proxy that npm is using by doing:

    npm config get proxy
    npm config get https-proxy
    

    If you're behinid a proxy, try this:

    mv ~/.npmrc ~/.npmrc.bak
    

提交回复
热议问题