首页 > package中添加依赖包(monodb)以后无法正常安装

package中添加依赖包(monodb)以后无法正常安装

求教为什么在package中加入新的依赖包以后执行install失败??代买如下

"dependencies": {
    "body-parser": "~1.13.2",
    "cookie-parser": "~1.3.5",
    "debug": "~2.2.0",
    "ejs": "~2.3.3",
    "express": "~4.13.1",
    "morgan": "~1.6.1",
    "serve-favicon": "~2.3.0"
    "mongodb": "*"
  }
  

加入mongodb以后再当前目录执行npm install,显示如下错误

D:\microblog\microblog>npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\node\\node.exe" "D:\\node\\node_modules\\npm\\bin\
" "install"
npm ERR! node v4.4.1
npm ERR! npm  v2.14.20
npm ERR! file D:\microblog\microblog\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token 'm' at 16:6
npm ERR!     "mongoose": "*"
npm ERR!      ^
npm ERR! File: D:\microblog\microblog\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON

npm ERR! Please include the following file with any support request:
npm ERR!     D:\microblog\microblog\npm-debug.log

请问出现这个的原因啊?很神奇啊为什么会提示出现'm'有问题啊?只有mongodb无法正常安装啊


favicon这个包后面少了逗号,拿分走人。。

【热门文章】
【热门文章】