小编Ahm*_*bdo的帖子

如何修复此 package.json 文件中的 NPM EJSONParse?

在准备自动脚本并安装一些软件包来自动执行任务后,我收到以下错误:

npm ERR! file C:\Users\windw\Desktop\bootstrap4\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected string in JSON at position 455 while parsing '{
npm ERR! JSON.parse   "name": "confusion",
npm ERR! JSON.parse   "version": '
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
Run Code Online (Sandbox Code Playgroud)

下面是我的package.json文件

{
  "name": "confusion",
  "version": "1.0.0",
  "description": "This is a website for Ristorante Con Fusion",
  "main": "index.html",
  "scripts": {
    "start": …
Run Code Online (Sandbox Code Playgroud)

json node.js npm npm-scripts

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

json ×1

node.js ×1

npm ×1

npm-scripts ×1