DEV Community

daud99
daud99

Posted on

9 4

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay