Open tranthiphu56 opened 8 months ago
Not sure if this is related to PM2. I see the PM2 report states NodeJS 20 and the ?? operator is available since NodeJS 14 so not sure what goes wrong here. This is mostly related to your code. Does it run fine by running it manually rather than through PM2?
In my case, the issue was undefined environment variables.
I created the ecosystem.config.js file as instructed in the documentation ((https://pm2.keymetrics.io/docs/usage/application-declaration/)) and configured the environment variables as required (https://pm2.keymetrics.io/docs/usage/environment/).
With this setup, my application is working. I am currently checking with the hosting team regarding the ports
meow@meow-nv55s:~$ pm2 report