Open your MAC terminal.
1- Go to directory.
cd /usr/local/include/
2- Delete node folder.
sudo rm -rf node
3- Go to directory.
cd /usr/local/lib
4- Delete folder node_modules
sudo rm -rf node_modules
5- Go to directory.
cd /usr/local/bin
6- Delete other related folders.
sudo rm -rf node npm npx
Top comments (2)
Thank you. Your guide helped me to delete Node.js from MacBook Pro m1 pro. Now I can install nvm. Thank you, man.
Pleasure.