You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > Troubleshooting > I'm getting the error 'Check /app/package.json: command not found. Is a start script missing?', what's up with that?
I'm getting the error 'Check /app/package.json: command not found. Is a start script missing?', what's up with that?

Node.js projects on Glitch that need a server require a package.json file with a start command in the scripts field to run.

 

So be sure to include the following in package.json (see an example)

 

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

 

  • You can replace server.js with the name of your server start file.
  • Shell scripts also work.
Got more questions?  Check out our Community Forum

Open 24/7, the forum is where Glitch makers help each other and show off all the rad apps that they have created.  It's the friendliest community of coders on the Web!


 
Feedback
22 out of 22 found this helpful

scroll to top icon