繁体   English   中英

package.json文件中的npm错误

[英]npm ERROR in package.json file

我已经删除了nodeJs ad再次重新安装它,并且我使用了npm cache clean --force并没有工作,并且我使用了npm set Registry https://registry.npmjs.org/没有任何作用

如果有人之前修复了相同的错误,请帮助我

npm ERR! file E:\Courses\Express\project\nodeauth\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected end of JSON input while parsing near '...ejs":"2.6.1"
npm ERR! JSON.parse   }
npm ERR! JSON.parse     '
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\OmarBaz\AppData\Roaming\npm-cache\_logs\2018-06-23T18_04_08_578Z-debug.log

我的package.json文件

{
  "name": "inside",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "node ./bin/www"
  },
  "dependencies": {
    "connect-flash": "*",
    "cookie-parser": "~1.4.3",
    "debug": "~2.6.9",
    "express": "~4.16.0",
    "express-messages": "*",
    "express-session": "^1.15.6",
    "express-validator": "*",
    "http-errors": "~1.6.2",
    "mongodb": "*",
    "mongoose": "*",
    "morgan": "~1.9.0",
    "multer": "*",
    "passport": "*",
    "passport-http": "*",
    "passport-local": "*",
    "pug": "2.0.3",
    "serve-favicon": "^2.5.0",
    "ejs":"2.6.1"
  }

如果这是您的整个pcakage.json,则在文件末尾缺少'}'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM