Skip to content

Instantly share code, notes, and snippets.

@felipekm
Last active September 19, 2018 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/81ee768490d3c773f9991d46399f842e to your computer and use it in GitHub Desktop.
Save felipekm/81ee768490d3c773f9991d46399f842e to your computer and use it in GitHub Desktop.
Remove NVM, NODE, NPM completely
# RM ALL WHICH OUTS with rm
which npm
which node
whoch nvm
# Clean usr
sudo rm -rf /usr/bin/node
sudo rm -rf /usr/bin/npm
# Clean path
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# Symlink to work in SUDO
sudo ln -s ~/.nvm/versions/node/v10.10.0/bin/node /usr/bin/node
sudo ln -s ~/.nvm/versions/node/v10.10.0/bin/npm /usr/bin/npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment