This is a simple script that allows to install and remove NodeJS binaries installed in /usr/local
.
$ git clone https://github.com/g41n/NodeJS-binary-install.git
To install download NodeJS binaries from the official website and then
$ cd NodeJS-binary-install
$ sudo ./nodejs_binary_install.sh install ~/Downloads/node-v4.6.0-linux-x64.tar.xz
To remove
$ sudo ./nodejs_binary_install.sh remove