简体   繁体   中英

pm2: The system cannot find the specified path (Node.js)

I'm trying to run pm2 on a x64 windows 8.1 Machine, after a couple of problems I succesfully installed pm2, but now that I'm trying to run it I receive the following error:

The system cannot find the path specified.

The error comes from the pm2.cmd file, which contains the following code:

@IF EXIST "%~dp0/bin/sh.exe" ( "%~dp0/bin/sh.exe" "%~dp0\\node_modules\\pm2\\bin\\pm2" %* ) ELSE ( /bin/sh "%~dp0\\node_modules\\pm2\\bin\\pm2" %* )

Pm2 cant run in windows, because:

PM2 is a production module, who should be mainly used on Linux servers. It hasnt been tested on other platforms than Linux.

Here is the official issue at the repo: https://github.com/Unitech/pm2/issues/6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM