本人环境:
windows10, vmware12, ubuntu环境下面:
刚开始用npm下载失败,于是去网上找资料,说用阿里的地址进行下载可以,所以就用cnp加上设置registry = "https://registry.npm.taobao.org/"的方法去下载,但是下载到一半会卡住,报找不到github.XXX的地址(尝试了好多次,原来是我的虚拟机没法翻墙....)
于是就开始进行设置代理(让我的虚拟机可以翻墙),以真机为服务器去翻墙(前提你的真机可以翻墙),然后又去尝试npm install XXXX
这次报错误为:
npm ERR! network tunneling socket could not be established, cause=socket hang up npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config