简体   繁体   English

pm2:系统找不到指定的路径(Node.js)

[英]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: 我尝试在x64 Windows 8.1机器上运行pm2,在成功安装了pm2几个问题之后,但是现在我尝试运行pm2,我收到以下错误:

The system cannot find the path specified. 该系统找不到指定的路径。

The error comes from the pm2.cmd file, which contains the following code: 错误来自pm2.cmd文件,该文件包含以下代码:

@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" %* ) @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无法在Windows中运行,因为:

PM2 is a production module, who should be mainly used on Linux servers. PM2是生产模块,应该主要在Linux服务器上使用。 It hasnt been tested on other platforms than Linux. 它尚未在Linux以外的其他平台上进行过测试。

Here is the official issue at the repo: https://github.com/Unitech/pm2/issues/6 这是仓库中的官方问题: https : //github.com/Unitech/pm2/issues/6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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