Reputation: 1491
I following the Google Pub/Sub quickstart guide. When I try to run gcloud components install beta
I get the error below.
ERROR: (gcloud.components.install) Permission denied:
[/usr/local/google-cloud-sdk.staging]
Ensure you have the permissions to access the file and that the file is not in use.
How can I fix this?
Upvotes: 5
Views: 6097
Reputation: 1553
Have you tried to sudo the command? You might not have permission to write to that folder. sudo gcloud components install beta
.
Upvotes: 9