Skip to content

Strange bug on Windows #199

@AlexRMU

Description

@AlexRMU

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions