安装Mongoose的NPM错误 - "注册表返回404以获取GET"

时间:2015-10-11 11:40:10

标签: node.js mongoose npm

虽然在我的Windows机器中新安装了芒果驱动程序,但它会抛出错误..

npm WARN package.json ravi@1.0.0 No repository field.
npm WARN package.json ravi@1.0.0 No README data
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mongoose" "--save"
npm ERR! node v4.1.2
npm ERR! npm  v2.14.4
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on http://registry.npmjs.org/clear/mongoose
npm ERR! 404
npm ERR! 404 'mongoose' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'ravi'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\users\ravi rathore\desktop\userStory\npm-debug.log

我该怎么办?提前谢谢

1 个答案:

答案 0 :(得分:1)

您需要做的就是问题:

npm cache clean

如果您仍然遇到同样的错误,请与我们分享您的文件:

package.json
相关问题