Permission denied for executing node index.js

Hello community.

I am making a web application with node.js and express, and to deploy it I need to run the command “node src/index.js”. It executes it, but gives me this error:

Starting service with 'src/index.js'
bash: src/index.js: Permission denied

Can anyone help? My deploy command is src/index.js. Should I put node before? like this:
node src/index.js


It sounds like you might need to make sure your index.js has the proper permissions to be executed as a script. This article may be helpful for confirming these steps

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