What the hell is this?

#1

guys help. im noob and when i tried to host the bot here this is what i got- Check /app/package.json: it has syntax errors, install won’t proceed.

parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
Check /app/package.json: it has syntax errors, install won't proceed.
parse error: Unmatched '}' at line 27, column 14
Check /app/package.json: it has syntax errors, install won't proceed.
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
parse error: Unmatched '}' at line 28, column 14
Check /app/package.json: it has syntax errors, install won't proceed.
parse error: Unmatched '}' at line 27, column 14
Check /app/package.json: it has syntax errors, install won't proceed.
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14
parse error: Unmatched '}' at line 27, column 14 

This is the Package.json file-

{
  "name": "discord-bot",
  "productName": "Discord Bot - Controls",
  "version": "0.1.0",
  "description": "Discord Bot - Controls",
  "main": "bot.js",
  "author": {
    "name": "Kasper Rasmussen"
  },
  "scripts": {
    "start": "node bot"
  },
  "dependencies": {
    "discord.js": "^11.4.2",
    "ffmpeg": "0.0.4",
    "ffmpeg-binaries": "^4.0.0",
    "moment": "^2.23.0",
    "ms": "^2.1.1",
    "opusscript": "0.0.6",
    "parse-duration": "^0.1.1",
    "request": "^2.88.0",
    "weather-js": "^2.0.0",
    "yt-search": "^0.4.1",
    "ytdl-core": "^0.29.1",
"express-glitch-keepalive": "^0.2.0",
"express": "^4.16.4"},
  "scripts": },
    "start": "node bot.js"
}

i need help as fast as possible. ty.


MOD EDIT: formatting

1 Like

#2

You could have sent only one of the errors.

1 Like

#3

@kris4oo

It looks like you closed your “Scripts” section incorrectly, you are missing the opening {, and the start is on the outside of it.
You should have something like this:

  "scripts": {
    "start": "node bot.js"
         }

and you also do not need the scripts at the bottom, as you already have it in the package.json before the dependencies

0 Likes

#4

Hey @kris4oo, welcome to the Glitch forum!

As is probably self-evident, your package.json has a syntax error. In this case it’s the area around your second scripts element (and in fact, having two of those can also be problematic). This package.json content should give you better results:

{
   "name":"discord-bot",
   "productName":"Discord Bot - Controls",
   "version":"0.1.0",
   "description":"Discord Bot - Controls",
   "main":"bot.js",
   "author":{
      "name":"Kasper Rasmussen"
   },
   "scripts":{
      "start":"node bot"
   },
   "dependencies":{
      "discord.js":"^11.4.2",
      "ffmpeg":"0.0.4",
      "ffmpeg-binaries":"^4.0.0",
      "moment":"^2.23.0",
      "ms":"^2.1.1",
      "opusscript":"0.0.6",
      "parse-duration":"^0.1.1",
      "request":"^2.88.0",
      "weather-js":"^2.0.0",
      "yt-search":"^0.4.1",
      "ytdl-core":"^0.29.1",
      "express-glitch-keepalive":"^0.2.0",
      "express":"^4.16.4"
   }
}

in the future tools like https://jsonformatter.curiousconcept.com/ and http://package-json-validator.com/ can help you sort syntax errors in your package.json file.

1 Like