简体   繁体   中英

npm ERROR in package.json file

i have deleted nodeJs ad re-install it again and i used npm cache clean --force and didn't work and i used npm set registry https://registry.npmjs.org/ nothing worked

please help me with this if someone fixed the same error before

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

my package.json file

{
  "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,则在文件末尾缺少'}'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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