it is showing this error
Error: Cannot find module ‘/opt/render/project/src/run’
here is my repo link , please help me with this
repo -GitHub - Rajesh3923/Mern-Chat-Apk
it is showing this error
Error: Cannot find module ‘/opt/render/project/src/run’
Hi there,
Your start command needs to be npm run start
(or just npm start
), not node run start
. Note you will also want to change this line in your server.js
:
const PORT = process.env.PORT || 0.0.0.0
0.0.0.0
isn’t a port, it’s an IP address that signifies all network interfaces. Express uses this by default, but it would be used as the host
. Change 0.0.0.0
to something like 5000
for the default port for your service.
Regards,
Keith
Render Support, UTC+10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.