I'm using EC2 with their Amazon Linux AMI. There is no way to login as root for security reasons. I installed node.JS with no problem but failed with the Node Package Manger. When using curl without sudo it fails because userrights are missing, if you use sudo it fails because it thinks node is missing. Tried get and make install too, but this fails also (don't know where to look up why…)
Has anyone finished installing npm with sudo only?
Any chance to install npm without root access
amazon ec2installationnode.js
Best Answer
Why don't you just type
at the command line to get a root prompt? This is confirmed to work with the latest Amazon Linux AMI...