Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pm2 commad always stuck at [PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

Tags:

node.js

pm2

I've been following this issue and till now my problem not solved, anyone can help? Any command of pm2 always returned

[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

Thanks

like image 641
Muhammad Iqbal Avatar asked Dec 06 '18 16:12

Muhammad Iqbal


1 Answers

You need to either update Node to a newer version or downgrade PM2 to an older version. This solved the issue:

npm uninstall -g pm2 npm install -g [email protected]

like image 112
Hamid Reza Avatar answered Sep 18 '22 12:09

Hamid Reza