Skip to content

Instantly share code, notes, and snippets.

@antife-yinyue
Created March 27, 2014 09:31
Show Gist options
  • Save antife-yinyue/9803724 to your computer and use it in GitHub Desktop.
Save antife-yinyue/9803724 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /usr/local/lib
sudo rm -rf node node_modules
cd /usr/local/bin/
sudo rm -f node npm
cd $HOME
sudo rm -rf .npm
if [ ! `sudo which node` ]; then
echo "Successful."
else
echo "Aborted."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment