Can someone help me with this error?

I made a git clone of this repo: https://github.com/mindaugaskasp/discord-music-bot
Here’s the error:
/opt/watcher/app-types/node/start.sh: line 49: null: command not found
Please tell me what’s the problem.

Can you please show me your package.json.

It is there in the GitHub link. I haven’t modified anything
Edit: Here it is:

    {
  "name": "discord-music-bot",
  "version": "1.0.0",
  "description": "simple discord music bot based on discord.js-commando",
  "main": "index.js",
  "dependencies": {
    "@mindaugaskasp/node-osu": "github:mindaugaskasp/node-osu",
    "@mindaugaskasp/node-riot": "github:mindaugaskasp/node-riot",
    "@mindaugaskasp/node-twitch": "github:mindaugaskasp/node-twitch",
    "@mindaugaskasp/node-youtube": "github:mindaugaskasp/node-youtube",
    "axios": "^0.15.3",
    "bufferutil": "^4.0.1",
    "discord.js": "^11.4.2",
    "discord.js-commando": "^0.10.0",
    "erlpack": "github:hammerandchisel/erlpack",
    "ffmpeg": "0.0.4",
    "fluent-ffmpeg": "^2.1.2",
    "libsodium-wrappers": "^0.7.4",
    "moment": "^2.24.0",
    "node-opus": "^0.3.1",
    "opusscript": "0.0.6",
    "promised-io": "^0.3.5",
    "sqlite": "^3.0.1",
    "uws": "^10.148.1",
    "validator": "^9.4.1",
    "ytdl-core": "^0.29.1"
  },
  "devDependencies": {},
  "scripts": {
    "prod": "node ./index.js",
    "debug": "node --inspect-brk=127.0.0.1:8080 ./index.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/mindaugaskasp/discord-music-bot.git"
  },
  "keywords": [
    "discord",
    "music",
    "discord-music",
    "discord-music-bot",
    "command-bot",
    "discord-js.commando",
    "music",
    "bot",
    "listen.moe",
    "discord",
    "bot"
  ],
  "author": "Mindaugas Kasparavičius",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mindaugaskasp/discord-music-bot/issues"
  },
  "homepage": "https://github.com/mindaugaskasp/discord-music-bot#readme"
}

MODE EDIT: formatting

Ok, Can you use this, and see if it changes anything?

{
   "name":"discord-music-bot",
   "version":"1.0.0",
   "description":"simple discord music bot based on discord.js-commando",
   "main":"index.js",
   "dependencies":{
      "@mindaugaskasp/node-osu":"github:mindaugaskasp/node-osu",
      "@mindaugaskasp/node-riot":"github:mindaugaskasp/node-riot",
      "@mindaugaskasp/node-twitch":"github:mindaugaskasp/node-twitch",
      "@mindaugaskasp/node-youtube":"github:mindaugaskasp/node-youtube",
      "axios":"^0.15 .3",
      "bufferutil":"^4.0 .1",
      "discord.js":"^11.4 .2",
      "discord.js-commando":"^0.10 .0",
      "erlpack":"github:hammerandchisel/erlpack",
      "ffmpeg":"0.0 .4",
      "fluent-ffmpeg":"^2.1 .2",
      "libsodium-wrappers":"^0.7 .4",
      "moment":"^2.24 .0",
      "node-opus":"^0.3 .1",
      "opusscript":"0.0 .6",
      "promised-io":"^0.3 .5",
      "sqlite":"^3.0 .1",
      "uws":"^10.148 .1",
      "validator":"^9.4 .1",
      "ytdl-core":"^0.29 .1"
   },
   "devDependencies":{

   },
   "scripts":{
      "start":"node index.js",
      "debug":"node--inspect-brk = 127.0 .0 .1:8080./index.js",
      "test":"echo 'Error:no test specified' && exit 1"
   },
   "repository":{
      "type":"git",
      "url":"git + https://github.com/mindaugaskasp/discord-music-bot.git"
   },
   "keywords":[
      "discord",
      "music",
      "discord-music",
      "discord-music-bot",
      "command-bot",
      "discord-js.commando",
      "music",
      "bot",
      "listen.moe",
      "discord",
      "bot"
   ],
   "author":"Mindaugas Kasparavičius",
   "license":"MIT",
   "bugs":{
      "url":"https://github.com/mindaugaskasp/discord-music-bot/issues"
   },
   "homepage":"https://github.com/mindaugaskasp/discord-music-bot#readme"
}

MOD EDIT: formatting

I see this error now:
parse error: Invalid numeric literal at line 2, column 11

Does it give you the location of the error (file name)

No, it’s the same message always coming in the log every second

Do you want me to send you the link to edit the project? I will dm you the link if you want to.

No thanks, I am going to let someone else try help out now, as I have to go soon!

Hey @Daksh777, I think @Callum-OKane was on the right track, but the package.json they provided just had some funky characters that aren’t valid in json files. That’s why your project was telling you about a parse error - Glitch couldn’t parse the package.json due to the “smart quotes” in that file. I’ve modified the contents in the post above and you might try using that content instead.

The issue I think you were initially running into is this: Glitch Node projects rely on a properly-executable start script in the scripts property of your package.json file. That’s not universal in GitHub repos, as you’ve otherwise noted, so many Node repos require that to be added to run properly in Glitch. If it’s not there then Glitch tells you that there’s nothing for it to do when it tries to start the project. In your intiial package.json you could also change the prod script to start and you should get past that particular error.

Hope this helps. Happy Glitching!

1 Like

Hey @cori this is the error I get:
parse error: Invalid numeric literal at line 59, column 5

can you go to that location of the package.json file and tell me what is there?

Line 59 is “version”: “1.0.0” ,

It seems like in the version I edited on @Callum-OKane’s post that’s the last line of the file, and dropping that file in a new project doesn’t show that error, so I suspect your package.json looks a little different than what’s in Can someone help me with this error?, above.

You can also use something like http://package-json-validator.com/ to check your file’s syntax, or post your whole file here again for someone to take a look at (or provide your project name).

@Daksh777
I think using this should fix all your problems!

{
“name”:“discord-music-bot”,
“version”:“1.0.0”,
“description”:“simple discord music bot based on discord.js-commando”,
“main”:“index.js”,
“dependencies”:{
@mindaugaskasp/node-osu”:“github:mindaugaskasp/node-osu”,
@mindaugaskasp/node-riot”:“github:mindaugaskasp/node-riot”,
@mindaugaskasp/node-twitch”:“github:mindaugaskasp/node-twitch”,
@mindaugaskasp/node-youtube”:“github:mindaugaskasp/node-youtube”,
“axios”:“^0.15 .3”,
“bufferutil”:“^4.0 .1”,
“discord.js”:“^11.4 .2”,
“discord.js-commando”:“^0.10 .0”,
“erlpack”:“github:hammerandchisel/erlpack”,
“ffmpeg”:“0.0 .4”,
“fluent-ffmpeg”:“^2.1 .2”,
“libsodium-wrappers”:“^0.7 .4”,
“moment”:“^2.24 .0”,
“node-opus”:“^0.3 .1”,
“opusscript”:“0.0 .6”,
“promised-io”:“^0.3 .5”,
“sqlite”:“^3.0 .1”,
“uws”:“^10.148 .1”,
“validator”:“^9.4 .1”,
“ytdl-core”:“^0.29 .1”
},

“scripts”:{
“start”:“node index.js”,
}

}

Not yet @Callum-OKane. Now this error:
parse error: Invalid numeric literal at line 2, column 11

And this line 2 is the same version thingy

This must be some error with the project itself, As there is nothing wrong with the package.json. Can you share your project name so a staff member can take a look!

Oh sorry that line is “name” one
My project name is incredible-ferry

{

"name":"discord-music-bot",

"version":"1.0.0",

"description":"simple discord music bot based on discord.js-commando",

"main":"index.js",

"dependencies":{

"@mindaugaskasp/node-osu":"github:mindaugaskasp/node-osu",

"@mindaugaskasp/node-riot":"github:mindaugaskasp/node-riot",

"@mindaugaskasp/node-twitch":"github:mindaugaskasp/node-twitch",

"@mindaugaskasp/node-youtube":"github:mindaugaskasp/node-youtube",

"axios":"^0.15 .3",

"bufferutil":"^4.0 .1",

"discord.js":"^11.4 .2",

"discord.js-commando":"^0.10 .0",

"erlpack":"github:hammerandchisel/erlpack",

"ffmpeg":"0.0 .4",

"fluent-ffmpeg":"^2.1 .2",

"libsodium-wrappers":"^0.7 .4",

"moment":"^2.24 .0",

"node-opus":"^0.3 .1",

"opusscript":"0.0 .6",

"promised-io":"^0.3 .5",

"sqlite":"^3.0 .1",

"uws":"^10.148 .1",

"validator":"^9.4 .1",

"ytdl-core":"^0.29 .1"

},

"scripts":{

"start":"node index.js",

}

}

Can you give this a try, I see the problem that it had, the package.json you are using is does have the correct quotes, I can see that you have when they should actually be "

Now this error:
parse error: Expected another key-value pair at line 59, column 1

And line 59 is just }

Also the " automatically becomes