Check if Node is Already Installed or Not
Enter the following command to see if the node is installed or not
node -v
If an output displaying the version number of the node is shown then Node is installed in the system.
Uninstall Node.JS Using Linux Command Line
To uninstall Node.js from your Linux system using the command line, you can follow these steps. The specific commands may vary depending on your Linux distribution, so I’ll provide instructions for a few common package managers: APT (Debian/Ubuntu), YUM (Red Hat/CentOS), and DNF (Fedora).