These are the steps I used today to get node installed and working on my Red Hat Enterprise Linux 6 machine. Note that the first step can cause potential issues, so you should understand and weigh those up. You can skip the first step, it just means you will have to run global module installs (npm install -g ...
) with elevated permissions (sudo/su).
- change owner of
/usr/local
so thatnpm install -g
will Just Work. I think this has to go before installing node so that everything works properly.
sudo chown -R $USER /usr/local