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

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

    Add the proxy and http_proxy field with your credentials (encoded if it contains any special characters) to your .npmrc file and run npm install again. It should work.

    for example:

    proxy=http://username:passcode@proxyURL:80/ https_proxy=http://username:passcode@proxyURL:80

提交回复
热议问题