The whole thing should only take 2 minutes, but of course it doesn’t work for me.
I tried several versions of PM2 and ran it as root.
There were only success messages, but the corresponding service remained on failed and did not start with the system.
I followed these instructions https://pm2.keymetrics.io/docs/usage/quick-start/
my system is debian and the node.js version 16.x
I tried using init, systemd and crontab to alternatively start PM2 when booting the system.
None of this worked either