DEV Community

daud99
daud99

Posted on

Uninstall Node on MAC OS

Open your MAC terminal.

1- Go to directory.

cd /usr/local/include/
Enter fullscreen mode Exit fullscreen mode

2- Delete node folder.

sudo rm -rf node
Enter fullscreen mode Exit fullscreen mode

3- Go to directory.

cd /usr/local/lib
Enter fullscreen mode Exit fullscreen mode

4- Delete folder node_modules

sudo rm -rf node_modules
Enter fullscreen mode Exit fullscreen mode

5- Go to directory.

cd /usr/local/bin
Enter fullscreen mode Exit fullscreen mode

6- Delete other related folders.

sudo rm -rf node npm npx
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
vladiuskor profile image
Vlad Ko

Thank you. Your guide helped me to delete Node.js from MacBook Pro m1 pro. Now I can install nvm. Thank you, man.

Collapse
 
daud99 profile image
daud99

Pleasure.