Last active
October 31, 2021 02:52
-
-
Save dimaslanjaka/8de2576eeebb8b9b6cbb4451c51eae2f to your computer and use it in GitHub Desktop.
Install nvm to sudoers bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "nvm using version $(nvm version)" | |
# removing existing symlinks | |
sudo rm -rf /usr/local/bin/node | |
sudo rm -rf /usr/local/bin/npm | |
sudo rm -rf /usr/local/bin/npx | |
# re-link nvm | |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node" | |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm" | |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npx" "/usr/local/bin/npx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment