MiguMusicApi icon indicating copy to clipboard operation
MiguMusicApi copied to clipboard

pm2启动失败

Open cxw620 opened this issue 3 years ago • 2 comments

起初提示找不到解释器,后来指定ts-node后提示启动成功,但实际访问失败,只有用npm命令直接运行才可,但需要持久运行就很麻烦,如何处理?

cxw620 avatar Mar 30 '21 09:03 cxw620

pm2 start npm —run xxx

jsososo avatar Mar 30 '21 09:03 jsososo

经测试不可以,但使用命令pm2 start --name migu npm -- start成功运行。 谢谢!

cxw620 avatar Mar 31 '21 04:03 cxw620