Loading... > 错误:[PM2][ERROR] Interpreter /usr/local/lib/node_modules/pm2/node_modules/.bin/ts-node is NOT AVAILABLE in PATH. (type 'which /usr/local/lib/node_modules/pm2/node_modules/.bin/ts-node' to double check.) 错误场景: 在使用`pm2 install typescript`和`pm2 start app.ts`时出现错误。 ### 解决方案 很简单,重新指定下ts-node的路径即可 ```shell pm2 start app.ts --interpreter ./node_modules/.bin/ts-node ```  可以看到已经成功跑起来了 最后修改:2021 年 09 月 01 日 © 允许规范转载 打赏 赞赏作者 支付宝 赞 0 如果觉得我的文章对你有用,请随意赞赏