我是新来的Node.js,和我经历了几个教程。 出于某种原因,我无法安装任何新的节点模块。
我使用: 的Mac OSX 10.7.4, 结点V 0.8.6,NPM v 1.1.48。
我跑NPM安装X,我总是得到一个
npm ERR! fetch failed https://registry.npmjs.org/-/X
npm ERR! Error: 404 Not Found
当我真正去了npmjs注册表中,我可以看到项目页面,但无论哪一种压缩包的链接我打,总是相同的:
{
"error": "not_found",
"reason": "document not found"
}
例如,我试图通过运行NPM安装FS和我得到的安装FS:
npm http GET https://registry.npmjs.org/fs
npm http 200 https://registry.npmjs.org/fs
npm http GET https://registry.npmjs.org/-/fs-0.0.0.tgz
npm http 404 https://registry.npmjs.org/-/fs-0.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/-/fs-0.0.0.tgz
npm ERR! Error: 404 Not Found
npm ERR! at null.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/fetch.js:47:16)
npm ERR! at EventEmitter.emit (events.js:115:20)
npm ERR! at WriteStream.flush (fs.js:1514:12)
npm ERR! at fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:92:5)
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Darwin 11.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "fs"
npm ERR! cwd /Users/comocomo/Documents/workspace/nodeTest
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/comocomo/Documents/workspace/nodeTest/npm-debug.log
npm ERR! not ok code 0
我试过FS,FS-EXTRA,快递,和强大的,都让我有相同的404响应。 一定有什么地方错了我的一部分,我敢肯定,在整个注册表不破。
我使用的旧的注册表? 我应该改变它在我的配置文件? 老实说,我宁愿不启动手动安装的东西,我敢肯定,这只是一个小的配置问题。
谢谢!