Sudo not working

sudo node example/example-without-dotenv.mjs
sudo: The “no new privileges” flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

1 Like

Welcome to the forums!

Unfortunately, you can’t use root in the shell.


You can’t use root in the Replit shell. Run stuff normally, and if it does need root privileges, maybe try using @jscraft’s Debian template to get a root area as an eval server.


You cannot use sudo on replit. However, you could try using this template:
It sets up a VM in the Replit container, giving you access to sudo on that VM.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.