【问题标题】:npm install -g ionic not working on windows 7 even I am not on proxy即使我不在代理上,npm install -g ionic 也无法在 Windows 7 上运行
【发布时间】:2015-11-20 15:30:31
【问题描述】:

我有点卡在这里,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

【问题讨论】:

    标签: npm ionic


    【解决方案1】:

    先尝试清除缓存:

    npm cache clean
    

    然后尝试重新安装

    npm install -g ionic
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-20
      • 1970-01-01
      • 2022-07-22
      • 2017-02-14
      • 1970-01-01
      • 1970-01-01
      • 2017-09-14
      相关资源
      最近更新 更多