Last active
September 13, 2024 03:29
-
-
Save ashimjk/87834b3a07155a78b0c72e4d027fceda to your computer and use it in GitHub Desktop.
This file contains hidden or 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
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | |
# add following detail into your .bashrc or .zshrc | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install node | |
npm install -g @angular/[email protected] | |
## Reference | |
# https://hub.docker.com/layers/node/library/node/lts-alpine3.9/images/sha256-9bff2ebfd6d3f98f16ec123f24f0c95ad5c5079d522afe4f499a3c3e4ac8d234?context=explore | |
# NVM Specific | |
nvm install 12.19.0 | |
nvm uninstall v14.13.0 | |
nvm ls | |
// cleanup | |
sudo apt-get remove nodejs npm node | |
sudo apt-get purge nodejs | |
// Now remove .node and .npm folders from your system | |
sudo rm -rf /usr/local/bin/npm | |
sudo rm -rf /usr/local/share/man/man1/node* | |
sudo rm -rf /usr/local/lib/dtrace/node.d | |
sudo rm -rf ~/.npm | |
sudo rm -rf ~/.node-gyp | |
sudo rm -rf /opt/local/bin/node | |
sudo rm -rf opt/local/include/node | |
sudo rm -rf /opt/local/lib/node_modules | |
sudo rm -rf /usr/local/lib/node* | |
sudo rm -rf /usr/local/include/node* | |
sudo rm -rf /usr/local/bin/node* | |
//Go to home directory and remove any node or node_modules directory, if exists. | |
//You can verify your uninstallation by these commands; they should not output anything. | |
which node | |
which nodejs | |
which npm | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Am still TESTING THE