You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > Project Editor > Errors in the Editor > Check /app/package.json: command not found. Is a start script missing?
Check /app/package.json: command not found. Is a start script missing?
print icon

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
47 out of 60 found this helpful

scroll to top icon