Yesterday I released a short bash script to help with installing nodejs and npm from source without having to do it as a root user: nodeinstall.
The idea is that having to use the root user permission to install nodejs packages can be a security risk. Moreover it’s a pain to insert your root password every time you install a nodejs package as global 🙂
Pull requests and any other feedback are welcome!
P.S.: if you are looking for something way more powerful and complete than my script you can check out NVM 😉