Working on Ec2 on AWS.
I have installed Node.js and it works fine.
But the problem arises when trying to install npm.
I am using the following command to
This guide worked perfectly: https://tecadmin.net/install-latest-nodejs-amazon-linux/
# sudo yum install -y gcc-c++ make
# curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
# sudo yum install -y nodejs
Note - you'll have to run sudo npm install
to get the installs to work.