when I tried to update npm, I found that command returns Permission deny:npm install npm -gThen I tried:sudo npm install npm -gThen npm has been updated, but when I tried npm -v and sudo npm -v, they show different version:npm -v //3.10.10sudo npm -v //5.1.0How can I make them always in the same version? It also happened on command 'node -v'. I am using fedora.
Different version of npm when using sudo?
fedora;node.js;npm