Safely remove Node.js and NPM from OS X and Linux regardless of the installation method. Logs all files and folders for removal to stdout and prompts the user for removal confirmation.
You can view a video of what this does on asciinema.
For your own safety always check shell files before you run them from the internet https://raw.githubusercontent.com/psyrendust/nodejsremover/master/nodejsremover.
1. Using cURL
curl -sSL https://raw.githubusercontent.com/psyrendust/nodejsremover/master/nodejsremover -o nodejsremover.sh && bash nodejsremover.sh && rm nodejsremover.sh
2. Using Wget
wget -qO- -O nodejsremover.sh https://raw.githubusercontent.com/psyrendust/nodejsremover/master/nodejsremover && bash nodejsremover.sh && rm nodejsremover.sh
The following methods are used to install Node.js on OS X and Linux.
1. Homebrew
brew install node
2. Node Version Manager
curl https://raw.githubusercontent.com/creationix/nvm/v0.22.2/install.sh | bash
nvm install stable
nvm alias default stable
3. 1-Click Installer from nodejs.org
- Visit: http://nodejs.org/
- Click
INSTALL
button - Run the installer