Error: Update NPM to lates version

Hi Friends!

when I try to update npm to the lates version with the command npm install -g npm@8.7.0 I always get an error. The error shows that I dont have the permissions to update to the latest version, but I am the administrator and the only user of the computer.

This is the error message:

Does anyone knows whats the issue here?

Thanks for help!!

Does it work if you run the command with sudo? sudo npm install -g npm@latest

1 Like

Yes it worked!! Thanks so much :upside_down_face:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.