2015-10-11 102 views
2

雖然新安裝的驅動程序mangoose我的Windows機器裏它拋出一個錯誤..NPM錯誤安裝貓鼬 - 「註冊表返回404 GET」

npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] 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 

我應該怎麼辦?在此先感謝

+0

只是爲了保持完整性,你能包括你正在運行的命令?它是'npm install mongoose'嗎? –

+0

npm安裝貓鼬 - 保存 – Ravidx7

回答

1

所有你需要做的是問題:

npm cache clean 

如果你仍然得到同樣的錯誤,請與我們分享您的文件:

package.json