I have just installed nodejs on a new EC2 micro instance. I installed it normally, ./configure -> make -> sudo make install. Problem: When I run "node" under ec2-user, it runs perfectly. When I run "sudo node", it fails. I found out that node is in: [ec2-user@XXXX ~]$ whereis node node: /usr/local/bin/node /usr/local/lib/node and the current path is [ec2-user@XXXX ~]$ echo $PATH /usr/local/bin:/bi