Error running coffee code with pm2: Error: spawn /usr/local/lib/node_modules/pm2/node_modules/.bin/coffee ENOENT

Error running coffee code with pm2: Error: spawn /usr/local/lib/node_modules/pm2/node_modules/.bin/coffee ENOENT

在我将 pm2 从 2.1.5 升级到 3.4.1 之后,当我尝试 start/restart 一个应用 pm2 restart api:

时开始出现以下错误
PM2      | App [api:6] starting in -fork mode-
PM2      | App [api:6] online
PM2      | Error: spawn /usr/local/lib/node_modules/pm2/node_modules/.bin/coffee ENOENT
PM2      |     at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19)
PM2      |     at onErrorNT (internal/child_process.js:431:16)
PM2      |     at processTicksAndRejections (internal/process/task_queues.js:81:17)
PM2      | App [coffee:10] exited with code [0] via signal [SIGINT]

我尝试使用 pm2 install coffee 为 pm2 安装 coffee 但它没有帮助 - 我在 pm2 logs:

中看到了很多这样的东西
PM2      | App [coffee:11] exited with code [0] via signal [SIGINT]
PM2      | App [coffee:11] starting in -fork mode-
PM2      | App [coffee:11] online
PM2      | App [coffee:11] exited with code [0] via signal [SIGINT]
PM2      | App [coffee:11] starting in -fork mode-
PM2      | App [coffee:11] online

为 pm2 安装 coffeescript 版本 1 运行

pm2 install coffee-script

安装 coffeescript 版本 2 运行

pm2 install coffeescript