Parse error: Expected value before ',' at line 8, column 4 Please help me getting this error package

#1

parse error: Expected value before ‘,’ at line 8, column 4

Please help me getting this error package.

{
  "name": "economybot",
  "version": "1.0.0",
  "description": "",
  "main": "economy.js",
  "scripts": { "start": "node server.js" },
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "discord.js": "^11.4.2",
    "ms": "^2.1.1",
    "quick.db": "^7.0.0-b16",
    "ts-node": "^8.0.3"
  }
}

MOD EDIT: formatting

#2

"test" line should be in "scripts", so you simply just have to move that line in scripts’ curly brackets

1 Like
#3

do not fully understand if you tell

#4

This part of your package.json

  "scripts": { "start": "node server.js" },
    "test": "echo \"Error: no test specified\" && exit 1"
  },

should instead look like this

  "scripts": { 
    "start": "node server.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  },

and that should resolve the parsing error.