Glitch program not starting - Discord bot (there's no errors in the log/console)

javascript
#1

My program is stuck on “Waking Up” and it won’t wake up. I’ve waited for quite a while; there’s no log output that says something is happening, and my code seems fine. Can someone help?
windows-bot.glitch.me

#2

This is because your code isn’t running at all!

After taking a look at your project, there appears to be no package.json file meaning your code won’t run!

In order for Glitch hello-express projects to run a package.json file must exist!

1 Like
#3

I had my package.json in there, but:

  • It still wouldn’t start
  • It kept saying “unexpected end of json” even though I copied it right from a tutorial.
#4

Copy/paste issues can often cause problems with a package.json file, and there’s no guarantee that a tutorial’s provided package.json file is correct. You can check the file you’re using with http://package-json-validator.com/ to make sure it’s valid.

#5

Can you provide the package.json you were using, or a link to the tutorial you were going off.

#6

as i can see @dominic03 has no file named “package.json” he has “watch.json” but there is litterrally nothing inside of it its just a empty file

#7

https://anidiots.guide/other-guides/hosting-on-glitch