Javascript 我能';t使用npm安装包裹-无法解析package.json数据

Javascript 我能';t使用npm安装包裹-无法解析package.json数据,javascript,node.js,json,npm,Javascript,Node.js,Json,Npm,我在项目文件夹的cmd中使用(npm init)创建了package.json文件 ,然后我写了 (npm i地块—保存开发) 这就是我得到的: C:\Users\XPRESS\Desktop\starter>npm i parcel --save-dev npm ERR! code EJSONPARSE npm ERR! file C:\Users\XPRESS\Desktop\starter\package.json npm ERR! JSON.parse Failed to pars

我在项目文件夹的cmd中使用(npm init)创建了package.json文件 ,然后我写了 (npm i地块—保存开发) 这就是我得到的:

C:\Users\XPRESS\Desktop\starter>npm i parcel --save-dev
npm ERR! code EJSONPARSE
npm ERR! file C:\Users\XPRESS\Desktop\starter\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 211 while parsing nea
r '...dex.html",
npm ERR! JSON.parse
npm ERR! JSON.parse   },
npm ERR! JSON.parse   "author": "Ibra...'
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\XPRESS\AppData\Roaming\npm-cache\_logs\2021-01-25T18_59_41
_237Z-debug.log
还有这个package.json

{
  "name": "starter",
  "version": "1.0.0",
  "description": "Recipe application",
  "main": "index.html",
  
    "scripts": {
    "start": "parcel index.html",
    "build": "parcel build index.html",
      
  },
  "author": "",
  "license": "ISC"
}

有什么想法吗。。我是新来的,4天内找不到任何解决方案

只需删除此行的多余尾随逗号:

"build": "parcel build index.html"

发布你的package.json文件。我编辑了Post,删除了
中的逗号“build”:“package build index.html”,
@PascalLamers这个问题应该结束了。该错误解释了问题所在。此外,我真的怀疑是否有一个调查,然后问这个问题。请考虑这是有益的。我读了。。非常感谢。