when I tried
npm install -g npm
there were a lot of warnings
so I did
sudo npm install -g npm
which seemed to work flawlessly.
however now, when I want to use npm in terminal it returns:
bash: npm: command not found
I can only use npm with sudo now.
How do I revert this?
I tried reinstalling npm and nodejs but it does not work.
I am running arch linux btw