windows:npm安装得到错误ERR! 代码ECONNRESET

我尝试安装离子,但是当运行npm install -g ionic我有下面的错误。

 npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ECONNRESET npm ERR! network 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 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' 

我的networking没有代理,当我运行npm get proxy它说null

我已经尝试清理caching,并将registry更改为http://registry.npmjs.org/https://registry.npmjs.org/ ,也可以访问http://registry.npmjs.org/yo安装离子时仍然有同样的错误。

希望解决我的问题。

谢谢,

有一些依赖性问题。

看下面的链接:

http://ionicframework.com/docs/concepts/development.html

改进的答案下面:
默认情况下,brew安装最新的稳定版本的节点(在本例中为0.12.4)。 基于警告消息,离子期望节点的较低版本。
我能够通过安装节点的先前版本(0.10.38)来解决此问题。

 $ brew remove node $ rm ~/.node (might want to rename instead) $ brew install homebrew/versions/node010 $ node --version $ v0.10.38 

运行npm install -g离子按预期工作。