首页 > 开发 > NodeJS > 正文

pm2启动node项目报错

2017-09-08 17:17:15  来源:网友分享
Error: ENOENT: no such file or directory, uv_chdirat Error (native)at /xxxxx/lib/node_modules/pm2/lib/ProcessContainer.js:299:13at /xxxx/lib/node_modules/pm2/node_modules/async/lib/async.js:52:16at /xxxx/lib/node_modules/pm2/node_modules/async/lib/async.js:1209:30at WriteStream.<anonymous> (/xxx/lib/node_modules/pm2/lib/Utility.js:147:13)

如题,使用pm2启动项目时,报如上错误.使用node直接启动是好的. 网上搜了一下,没有发现什么解决方法,初入坑,求指教~

解决方案

  • 贴出使用的pm2命令,启动过程中pm2只有报错提示吗? 比如说outdated????

  • 如果没有run其他项目,先执行pm2 kill,再试试