Recently, I was facing an error with my Git. So, I tried to uninstall/delete Git from my windows system so that I could reinstall it again from beginning. But, In that process I mistakenly deleted some files which were related to NodeJs and NPM.
Now, NodeJs and NPM are not working in my system. I have tried updating it. Uninstalled the NodeJs from the system and reinstalled it. But, Still I am facing the same error.
The error can be seen in the image....
Here, you can see the 'node -v' command is working fine
(The error is caused using npm only but not with node)
Getting this exact same error with each and every npm command
Your Help will be appreciated.....!
WHAT I HAVE ALREADY TRIED TO RESOLVE THIS ISSUE-
I tried to delete/uninstall the NodeJs from my system but I did not uninstall Each & Every file related to NodeJs from system because I thought It can cause some other new problems/issues with other softwares in my laptop.
Therefore, I uninstalled the NodeJs normally and then reinstalled it from the official website.
I was expecting that it would solve the issue but it didn't work.
I tried to resolve the issue using NVM also....
Downloaded the nvm setup and installed it.... But, NVM is not getting installed in my system.... Because after installing it many times with best of my efforts and precautions. Still, It's not working in my system and I am not getting any response related to it....
When I am checking by running 'nvm -v' command in terminal, that it has installed or not... It's showing an error which means there is no nvm in my system... (screenshot attached)