Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2-deploy to windows box "The syntax of the command is incorrect." #198

Open
bshea5 opened this issue Aug 4, 2021 · 2 comments
Open

pm2-deploy to windows box "The syntax of the command is incorrect." #198

bshea5 opened this issue Aug 4, 2021 · 2 comments

Comments

@bshea5
Copy link

bshea5 commented Aug 4, 2021

When running pm2 deploy production setup, an error is thrown after the SSH connection is established.

The syntax of the command is incorrect.

  setup paths failed

This seems to occur due to line 212 in pm2-deploy/deploy.
run "mkdir -p $path/{shared/{logs,pids},source}"
Where it is attempting to create a directory, but in CMD, the forward slashes are not supported. I can get around this by setting a different default shell for OpenSSH(in my case, git bash) on the box, but if pm2 is supporting Windows, this line should be adjusted.

Thanks!

@TianYa-Q
Copy link

same problem. thanks for figure it out

@SteadEXE
Copy link

Same issue, any ETA on fix?
pm2 -v 5.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants