Deployment doesn't work

Question: My node.js application ran normally before 1-1-2024, after that I learned that I should deploy it to have the access link with the .app extension but during deployment the error occurred

Repl link: https://replit.com/@ltron/Nearvillasparque?s=app

code snippet
01/16/24 08:37:08 AM
exec [sh -c replit run] error=exit status 127
01/16/24 08:37:08 AM
sh: 1: replit: not found
01/16/24 08:37:08 AM
hostingpid1: crash loop detected
01/16/24 08:37:08 AM
exec [sh -c replit run] error=exit status 127
01/16/24 08:37:08 AM
sh: 1: replit: not found
01/16/24 08:37:08 AM
exec [sh -c replit run] error=exit status 127
01/16/24 08:37:08 AM
replit: not found
01/16/24 08:37:08 AM
sh: 1:
01/16/24 08:37:08 AM
starting up user application

Hi @ltron , welcome to the forums!
Try changing the 85th line of the .replit file from:

run = ["sh", "-c", "replit run"]

To:

run = "node index.js"

See if that works.
Hope this helps!

1 Like

Just a note, that line using ["sh", "-c",...] is standard in all Repls, so you might need to keep the config that way.