node.js - package中添加依赖包(monodb)以后无法正常安装
迷茫
迷茫 2017-04-17 13:40:09
0
1
374

求教为什么在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无法正常安装啊

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回覆 (1)
刘奇

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

    最新下載
    更多>
    網站特效
    網站源碼
    網站素材
    前端模板
    關於我們 免責聲明 Sitemap
    PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!