【问题标题】:npm unable to fetch Meteoritenpm 无法获取陨石
【发布时间】:2013-11-14 06:45:27
【问题描述】:

使用 nodejs v0.10.22 和 npm v1.3.14,我尝试安装陨石,如下所示:

$ npm install meteorite
npm http GET https://registry.npmjs.org/meteorite
npm http 304 https://registry.npmjs.org/meteorite
npm http GET https://registry.npmjs.org/meteorite/-/meteorite-0.6.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/meteorite/-/meteorite-0.6.16.tgz
npm http GET https://registry.npmjs.org/meteorite/-/meteorite-0.6.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/meteorite/-/meteorite-0.6.16.tgz
npm http GET https://registry.npmjs.org/meteorite/-/meteorite-0.6.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/meteorite/-/meteorite-0.6.16.tgz
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 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 的注册表现在有问题。
  • 我们如何使用npm 从 NPM 注册表的镜像中拉取包?

标签: javascript node.js npm meteorite


【解决方案1】:

NPM 已关闭,如果有可用的 NPM 镜像,您可以使用它。

npm set registry <registry-location>

你必须设置一个镜子或找一个有的人。

当你想恢复正常时:

npm set registry https://registry.npmjs.org/

【讨论】:

    猜你喜欢
    • 2013-05-03
    • 2013-10-21
    • 2013-03-03
    • 1970-01-01
    • 2014-01-30
    • 2013-02-17
    • 1970-01-01
    • 2015-09-13
    • 2013-07-23
    相关资源
    最近更新 更多