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

Discussion (0)