Permission denied. But which permission?

I am currently at version 3.40.2. I get this error when I type “ghost update” to upgrade to the latest version. I have updated without any problem before. I used the command “sudo npm install -g ghost-cli @latest” before this command. Everything was fine, why did something like this happen?


Ghost doctor:

I deleted Ghost.

The message tells you - it’s the .ghost-cli file/folder - which is probably owned by root cos of the sudo