Install pm2 on repl.it
I'm trying to install pm2 on my repl to automatically restart it when it crashes. However, I get the error that I need to run it as admin. Tried running as sudo but it said sudo not found. Please help! Thanks.
you can't be sudo on replit. you could try to figure out how to download fakeroot and maybe get it to work cause... idk. magic. also if you want to install it and pm2 is just a package from npm, just require it in your nide repl as if it alrready exists on the machine and replit's upm will automagically install it for you.