[PM2] Spawning PM2 daemon with pm2

发布时间:2024-11-20 19:28

'Agreement'用'Let's proceed with the deal'表示 #生活技巧# #职场沟通技巧# #商务英语口语#

最新推荐文章于 2022-07-30 11:48:57 发布

vieber 于 2020-01-27 20:40:14 发布

运行pm2启动应用的时候,报下面这个错误

[PM2] Spawning PM2 daemon with pm2_home=/home/sufubo/.pm2 1

查看log

/usr/lib/node_modules/pm2/node_modules/chokidar/index.js:151 async remove(item) { ^^^^^^ SyntaxError: Unexpected identifier at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/Watcher.js:6:16) 123456789101112131415

原来是pm2版本过高,因为我的nodejs才是v6.17.1版本。
解决办法,安装低版本pm2解决

npm i pm2@3.5.1 -g 1

网址:[PM2] Spawning PM2 daemon with pm2 https://www.yuejiaxmz.com/news/view/159986

相关内容

小米空气净化器
关于生活日记3篇 日常生活日记
室内空气净化及治理方法是什么
空气净化器 voc
【精选】生活作文合集8篇
什么是空气净化
The joy of living with less
Manifest merger failed with multiple errors, see logs问题处理
Multiple entries with same key: 1=1 and 1=1
水中生活 The Life Aquatic with Steve Zissou

随便看看