- Go to /usr/local/lib and delete any node and node_modules
- Go to /usr/local/include and delete any node and node_modules directory
- check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
- Go to /usr/local/bin and delete any node and npm executable.
- If you have installed in any other custom directory, please remove that as well.
Use below command to remove recursively.
>sudo rm -rf node
>sudo rm -rf node_modules
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}