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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay