windows 8 安装 connect-mongo 出现 Couldn't read dependencies
发布于 1年前 作者 z410345759 1286 次浏览

学习 nojs 指南,在安装connect-mongo 的时候出现此错误;代码如下:

PS D:\node> npm install
npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open 'D:\node\package.json'
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](/user/googlegroups).com>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files           (x86)\\nodejs\\node_modules\\npm\\bin
\npm-cli.js" "install"
npm ERR! cwd D:\node
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! path D:\node\package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\node\npm-debug.log
npm ERR! not ok code 0
2 回复

此问题在于我package.json文件格式出错 ,已解决

我以前刚写的时候也出现过,应该是json里面某些属性名称写错了吧

回到顶部