Here is how I install nodejs to get access to cool tools like “tldr” (a summarized version of the typical man pages) and “ungit” (an interface to Git to ease people into using it).
Run these two commands to get nodejs:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
then you can install ungit, tldr, whatever you want.
sudo npm install -g tldr
These commands work with Linux Mint 17 (or Ubuntu 14.04).