Here, some help with “how-to-npm” . I totally understand these struggles and i have been there before. Have a great day mates.
if npm install npm -g gives an error, make it sudo npm install npm -g
and try again
If you need sudo with npm, it’s because you have the permissions set wrong: https://docs.npmjs.com/getting-started/fixing-npm-permissions
Urgh…I’ve been meaning to fix that for ages