I am having a problem uninstalling a package node that does not even exists but still shows up in the path, weird it is or am I dumb... It's contradicting with nodejs and I wana get rid of it and install a fresh node symlink to nodejs so that I have a single source of truth. So far I have tried most the popular package managers.
#tag node vs nodejs linux
durrani@ideapad:~ $ nodejs --version
Command 'nodejs' not found, but can be installed with:
sudo apt install nodejs
durrani@ideapad:~ $ node --version
v12.14.0
durrani@ideapad:~ $ which nodejs
durrani@ideapad:~ $ which node
/usr/local/bin/node
durrani@ideapad:~ $ type node
node is hashed (/usr/local/bin/node)
durrani@ideapad:~ $ type nodejs
bash: type: nodejs: not found
durrani@ideapad:~ $ sudo apt-get remove node
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package node
durrani@ideapad:~ $ sudo apt-get purge node
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package node
durrani@ideapad:~ $ sudo snap remove node
snap "node" is not installed
durrani@ideapad:~ $ sudo pkcon remove node
Resolving [=========================] Package not found: node
Command failed: This tool could not find the installed package: No packages were found