@skmedia usually this happens because a different user installed npm compared to the user you’re logged in as when trying to run npm install corvid-cli.
You can reclaim ownership of NPM’s data directory by running:
sudo chown -R $(whoami) ~/.npm