Ask coding questions

← Back to all posts
need debug help
nanasv (0)

I probably think my set up to this project on replit is correct, but this error keep displaying.
could not find such file or directory. Enoen, and am confuse please can some one help debug or suggest for me thanks.

Answered by themining72 (49) [earned 5 cycles]
View Answer
themining72 (49)

Your file name is server.js, replit only runs index.js files, if you still want it as server.js, make a file name .replit and put in:

language = "nodejs"
run = "node server.js"
nanasv (0)

thanks, I was able run on index.js I have tried every thing with server.js but to no avail. Thanks ones again