I got this error "sh: 1: nodemon: Permission denied" when i try to deploy from GitHub

Hi there,

There isn’t any need to use Nodemon when running on a PaaS like Render. You can just start your service with node app/server.js.

That being said, the issue here is that because you have set root-directory option and the <root-dir>/node_modules/.bin is not being included on the PATH, so it can’t find nodemon. As a workaround by running node_modules/.bin/nodemon app/server.js. You could instead make your start command something like export PATH=/opt/render/project/src/server/node_modules/.bin:$PATH && npm start.


Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.