我尝试在 x64 windows 8.1 机器上运行 pm2,在遇到几个问题后我成功安装了 pm2,但现在我尝试运行它时收到以下错误:
系统找不到指定的路径。
错误来自pm2.cmd文件,其中包含以下代码:
@IF EXIST "%~dp0/bin/sh.exe"( “%~dp0/bin/sh.exe” “%~dp0\node_modules\pm2\bin\pm2” %* ) 别的 ( /bin/sh "%~dp0\node_modules\pm2\bin\pm2"%* )
最佳答案
Pm2 无法在 Windows 中运行,因为:
PM2 is a production module, who should be mainly used on Linux servers. It hasnt been tested on other platforms than Linux.
这是存储库中的官方问题: https://github.com/Unitech/pm2/issues/6
关于node.js - pm2:系统找不到指定路径(Node.js),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22673673/