Installing nodejs and npm without root privilegies



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.

My script is just an automation of the instructions that you can find in this blog post from Tom Novelli.

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 😉