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)
阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
logo
Microsoft
子站问答
访问
宣传栏