Open BBE78 opened 2 years ago
Try change interpreter
field.
Or do like mine:
script: 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
args: 'run start',
cwd: 'D:/repo/qq-bot',
@linonetwo Change interpreter to what??
What's going wrong?
starting
pm2
with a.bat
file raised an errorWhat do you expect?
I expect
pm2
to work with Windows scripts (.bat
,.cmd
,.ps
files) and documentation updated accordingly, or a more clear documentation about restrictions (if any) on Windows. All samples, or code snippets in the documentation is about.sh
scripts (so with Linux).Environment
How could we reproduce this issue?
test-pm2.bat:
then try:
pm2 start test-pm2.bat
Supporting information
pm2 error log file: