windows server下运行pm2跑typescript项目出错?
`
cd 项目文件夹
pm2 install typescript
pm2 start src/index.ts
pm2 logs
`
提示错误:
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
C:UsersAdministrator.pm2pm2.log last 15 lines:
PM2 | 2020-08-29T13:11:24: PM2 error: app=server id=0 does not have a pid
PM2 | 2020-08-29T13:58:39: PM2 log: App [server:0] starting in -fork mode-
PM2 | 2020-08-29T13:58:39: PM2 log: App [server:0] online
PM2 | 2020-08-29T13:58:39: PM2 error: Error: spawn C:UsersAdministratorAppDataRoamingnpmnode_modulespm2no
de_modules.bints-node ENOENT
PM2 | at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
PM2 | at onErrorNT (internal/child_process.js:469:16)
PM2 | at processTicksAndRejections (internal/process/task_queues.js:84:21)
PM2 | 2020-08-29T13:58:56: PM2 log: Stopping app:server id:0
PM2 | 2020-08-29T13:58:56: PM2 error: app=server id=0 does not have a pid
PM2 | 2020-08-29T13:59:17: PM2 log: App [server:0] starting in -fork mode-
PM2 | 2020-08-29T13:59:17: PM2 log: App [server:0] online
PM2 | 2020-08-29T13:59:17: PM2 error: Error: spawn C:UsersAdministratorAppDataRoamingnpmnode_modulespm2no
de_modules.bints-node ENOENT
PM2 | at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
PM2 | at onErrorNT (internal/child_process.js:469:16)
PM2 | at processTicksAndRejections (internal/process/task_queues.js:84:21)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论