【发布时间】:2019-12-11 17:02:25
【问题描述】:
我试图包含 mongoose 依赖项,为了做到这一点,我必须尝试在我的 nodejs 项目中安装 mongoose。它失败并显示以下错误消息:
"npm ERR! Unexpected end of JSON input while parsing near
'....0","standard-version'"
【问题讨论】:
-
你能显示你的 package.json 吗?
-
{ "name": "hms", "version": "1.0.0", "description": "带节点的医院管理系统", "main": "index.js", " scripts": { "start": "node server.js", "devstart": "nodemon server.js" }, "author": "yamlak kassahun and Natinale Solomon", "license": "ISC", "dependencies" :{“ejs”:“^3.0.1”,“express”:“^4.17.1”,“express-ejs-layouts”:“^2.5.0”},“devDependencies”:{“dotenv”:“ ^8.2.0", "nodemon": "^2.0.1" } }
标签: node.js mongodb npm mongoose installation