相关疑难解决方法(0)

无法使用"npm install"在Node.js中安装任何软件包

我是Node.js的新手,我正在学习一些教程.出于某种原因,我无法安装任何新的节点模块.

我使用: 的Mac OSX 10.7.4, 节点U 0.8.6. , NPM v 1.1.48. .

我运行npm install X,我总是得到一个

npm ERR! fetch failed https://registry.npmjs.org/-/X
npm ERR! Error: 404 Not Found
Run Code Online (Sandbox Code Playgroud)

当我真正进入npmjs注册表时,我可以看到项目页面,但无论我点击哪个tarball链接,它总是一样的:

{
    "error": "not_found",
    "reason": "document not found"
}
Run Code Online (Sandbox Code Playgroud)

例如,我尝试安装FS运行NPM安装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! …
Run Code Online (Sandbox Code Playgroud)

node.js npm

45
推荐指数
3
解决办法
9万
查看次数

标签 统计

node.js ×1

npm ×1