I had node 6 before but I had to remove it to downgrade it to Node 4. But when I am trying to reinstall node 6/ install node 4, I am getting this error.
[root@vvvvvv xxxxxxx]# yum install -y nodejs
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package 2:nodejs-6.11.0-1nodesource.el7.centos.x86_64 already installed and latest version
Nothing to do
I used this to remove the previous version.
after this, as per another website source, I tried
sudo rm -fv /etc/yum.repos.d/nodesource*
but to no avail!!
When I am checking $node --version
or $npm --version
, I dont get any valid output.