During deployment to render. Build is actually successfully!. But when it’s time to start service there is an error:
Dec 8 12:37:02 PM ==> Generating container image from build. This may take a few minutes…
Dec 8 12:39:16 PM ==> Uploading build…
Dec 8 12:39:51 PM ==> Build uploaded in 27s
Dec 8 12:39:51 PM ==> Build successful 🎉
Dec 8 12:39:51 PM ==> Deploying…
Dec 8 12:40:22 PM ==> Detected Node version 14.21.1
Dec 8 12:40:22 PM ==> Starting service with \’npm start\’
Dec 8 12:40:25 PM
Dec 8 12:40:25 PM > trader@1.0.0 start /opt/render/project/src
Dec 8 12:40:25 PM > nodemon –watch backend –exec node –experimental-modules backend/server.js
Dec 8 12:40:25 PM
Dec 8 12:40:25 PM sh: 1: nodemon: not found
Dec 8 12:40:25 PM npm ERR! code ELIFECYCLE
Dec 8 12:40:25 PM npm ERR! syscall spawn
Dec 8 12:40:25 PM npm ERR! file sh
Dec 8 12:40:25 PM npm ERR! errno ENOENT
Dec 8 12:40:25 PM npm ERR! trader@1.0.0 start: `nodemon –watch backend –exec node –experimental-modules backend/server.js`
Dec 8 12:40:25 PM npm ERR! spawn ENOENT
Dec 8 12:40:25 PM npm ERR!
Dec 8 12:40:25 PM npm ERR! Failed at the trader@1.0.0 start script.
Dec 8 12:40:25 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Dec 8 12:40:25 PM
Dec 8 12:40:25 PM npm ERR! A complete log of this run can be found in:
Dec 8 12:40:25 PM npm ERR! /opt/render/.cache/_logs/2022-12-08T11_40_25_699Z-debug.log
Dec 8 12:40:25 PM
Dec 8 12:40:25 PM > trader@1.0.0 start /opt/render/project/src
Dec 8 12:40:25 PM > nodemon –watch backend –exec node –experimental-modules backend/server.js
Please how do I resolve this
Hello wiliams eze,
I solved my deployment problem in Render by following this , If you want you can see this process, I think this will help you. Link to solve Render deployment – https://www.loom.com/share/7dd26ca96c9942ee92b7585614d19835