To completely uninstall node + npm is to do the following: go to /usr/local/lib and delete any node and node_modules. go to /usr/local/include and delete any node and node_modules directory. if you installed with brew install node, then run brew uninstall node in your terminal.
You can use it to install multiple versions of node, and then you can easily switch the currently used node version with one line of command. In other words, you don't need to uninstall and install anymore, just use nvm to install which version you want to use, and just switch with one instruction after installation!
Switching among Node. 7; we can simply run either nvm use 12.22. 7 or nvm use 16.13. 0 to easily switch into either version we need. Note that since we only have one version that begins with 12, 14, or 16, we can switch versions with a simple nvm use 16 , nvm use 14 , or nvm use 12 command.
First type
$ nvm deactivate
Then type
$ nvm uninstall 8.8.1
You can uninstall the nodejs by using the following command.
yum remove nodejs
However, this will not remove the nvm from your linux box. To remove that try the below command.
nvm unload
rm -Rf ~/.nvm
This is the nuclear option in my case. just -R would ask me if I really wanted to delete every file in the nvm folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With