Pm2 - script not found!

so I was trying to use pm2 to host my bot
but when I ran pm2 bot.js (yes, bot.js is my main file)
it says pm2 ERROR! Script not found!
can you help>

you cant install pm2 without it being global (you need sudo access). Glitch does not give sudo access

also if you ever use pm2 on a vm/local its pm2 start mainfile --name name

@anon43649539
i use visual studio code
okau?

Still won’t work as you dont have sudo access

1 Like

You could always try local testing or make a feature request.

1 Like

@anon43649539 How do I have sudo access?

You cannot get sudo access on Glitch.