replit looks for a starter file to start the script from. By default this is
if there is not an
index.js file as the starter file, then you need to create a file called
.replit and then you can set which file to run as the starter file.
If for example, your starter file was
you would put
run="node app.js" in the
The files already exists: https://github.com/freeCodeCamp/boilerplate-mochachai/blob/main/.replit
But in the file we have
run = "npm start" instead of
The change in spaces made it work, strange that this morning it was working and the afternoon it stopped working.