npm install -g ionic不能在Windows 7上工作,即使我不在代理上

时间:2015-11-20 07:23:22

标签: npm ionic

我有点卡在这里,npm install -g ionic没有在家用电脑上工作,这是Windows 7,我没有任何代理。我可以下载其他软件包,如npm install -g gulp等。

已经尝试按照stackoverflow here

上的其他人的建议进行更改

npm config set registry http://registry.npmjs.org/

我收到了吼声错误

npm ERR! network read ECONNRESET 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 settin gs. 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' npm ERR! Windows_NT 6.1.7600 npm ERR! argv "C:\\node\\\\node.exe" "C:\\node\\node_modules\\npm\\bin\\npm-cli. js" "install" "ionic" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! syscall read

1 个答案:

答案 0 :(得分:0)

首先尝试清除缓存:

npm cache clean

然后再次尝试安装

npm install -g ionic