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.



Project Options
Article last updated on