I've completely uninstalled nodejs/npm both.
However they seem to be throwing same error consistently whilst installing. I've also tried sudo-apt get update sudo apt cache verify and apt cache search, when I search nodejs is not found or npm.
The program 'nodejs' is currently not installed. You can install it by typing:
sudo apt-get install nodejs
And when I do sudo apt-get intall nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'nodejs' has no installation candidate
I've made sure nodejs/npm is removed from /usr/bin etc. Still doesn't seem to be working at all.