'Cannot uninstall node

I have followed several comprehensive guides on how to remove node from the machine, but nothing is working, and when I run node --version, it still shows to be on my machine.

I have followed https://www.quora.com/How-can-I-completely-uninstall-Node-js-from-MacOS and ran every command, but still node persists on my machine.

Is there a way to find where node is installed? whereis node returns nothing



Solution 1:[1]

Find the node using which node then use sudo rm node to remove the package.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sathish Kannan