簡體   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