When I run pm2 deploy ... this appears:
--> Deploying to production environment
--> on host ...
/bin/bash: ...\node_modules\pm2-deploy\deploy: No such file or directory
Deploy failed
Deploy failed with exit code: 127
I dug around and realized that
|
var proc = child_process.spawn('sh', ['-c', cmd], { stdio: 'inherit' }); |
starts the bash process, which causes the error. When I tried to start the process from cmd, instead of launching deploy, the deploy.js file opens in notepad. I renamed deploy to deploy.sh. Now it outputs
/bin/bash: ...\node_modules\pm2-deploy\deploy.sh: command not found
And when I run all the arguments of this process, a bash window appears and nothing happens.
When I run
pm2 deploy ...this appears:I dug around and realized that
pm2-deploy/deploy.js
Line 41 in 987428a
starts the bash process, which causes the error. When I tried to start the process from cmd, instead of launching deploy, the deploy.js file opens in notepad. I renamed deploy to deploy.sh. Now it outputs
/bin/bash: ...\node_modules\pm2-deploy\deploy.sh: command not foundAnd when I run all the arguments of this process, a bash window appears and nothing happens.