无法使用npm安装ember cli

无法使用npm安装ember cli,npm,ember-cli,Npm,Ember Cli,我在mac osx yosemite 10.10.5上运行&这就是每当我点击npm安装-g ember cli时得到的结果 npm ERR! Darwin 14.5.0 npm ERR! argv "/Users/itsfadnis/.nvm/versions/io.js/v3.3.1/bin/iojs" "/Users/itsfadnis/.nvm/versions/io.js/v3.3.1/bin/npm" "install" "-g" "ember-cli" "--no-optio

我在mac osx yosemite 10.10.5上运行&这就是每当我点击
npm安装-g ember cli时得到的结果

npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/itsfadnis/.nvm/versions/io.js/v3.3.1/bin/iojs" "/Users/itsfadnis/.nvm/versions/io.js/v3.3.1/bin/npm" "install" "-g"     "ember-cli" "--no-optional"
npm ERR! node v3.3.1
npm ERR! npm  v2.14.3
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT 103.245.222.162:80
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'

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/itsfadnis/npm-debug.log
我尝试过以下方法,但均无效:

  • 重新安装节点和npm
  • npm集注册表http://registry.npmjs.org
  • 尝试使用不同版本的节点-v0.12.8、iojs-v3.3.1、v4.4.2、v5.0
  • 无可选依赖项
    npm安装-g ember cli
  • 作为管理员
    sudo npm安装-g ember cli
  • 网络连接绝对正常,我不支持代理。 在此方面的任何帮助都将不胜感激。谢谢


    结果是由于我的路由器上启用了防火墙,所以它失败了。禁用它成功了

    你能连接到日志中显示的地址吗?103.245.222.162:80@JoséLuis no,它表示未知域。问题似乎是npm而不是nodejs,所以请尝试重新安装npm,清理npm缓存。@DanielKmak是的,我已经尝试了您建议的两种方法。仍然没有运气。--cache min 99999我有一个类似的问题,在我的情况下,我通过添加此选项解决了。请让我知道它是否有效,以便我可以制定一个完整的答案