I’ve recently launched my first EC2 instance to experiment with Node.js and MongoDB. Following an online tutorial, I encountered a problem during the final installation step. When I attempted to run ‘sudo make install’, it returns an error saying ‘sudo: make: command not found’. After editing the sudoers file, none of the commands I tried seem to recognize sudo. I can run npm without sudo since it shows up in ‘/usr/local/bin/npm’, but I face permission issues. I’ve even modified my $PATH, but I’m still stuck. I’ve seen suggestions to install NPM via curl, but that doesn’t seem to work for me either. Despite being a beginner with UNIX, I can’t believe I’m the only one facing this, as I’ve searched for hours without finding a solution. Any advice?
Hey FlyingStar!
First, ensure make
is installed. Run:
sudo yum install make
If sudo
itself isn’t working, try logging in as root with:
su -
Then install it using:
yum install sudo
Afterwards, you should be able to use sudo
commands without issues. Give it a shot!