Ask coding questions

← Back to all posts
Is it possible for me to use PM2 with
EndXOffical (2)

I tried before but it didn’t work. Maybe I’m doing something wrong.

TheLimifiedLime (1)

Replying so I can find this later

Coder100 (18930)

Something like:

npx pm2 start app.js
EndXOffical (2)

@Coder100 I want it to automatically start my node when it’s done. Like refreshing my node

Coder100 (18930)

Nope, you can't install it globally. To run pm2, you will have to do this instead:

npx pm2