0

使用 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'

问题:这是一个常见的错误吗?我们如何解决这个问题?

4

1 回答 1

0

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

npm set registry <registry-location>

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

当您想恢复正常时:

npm set registry https://registry.npmjs.org/
于 2013-11-13T22:45:27.067 回答