gcloud command not found - while installing Google Cloud SDK

后端 未结 28 1138
忘掉有多难
忘掉有多难 2020-12-07 13:43

I am on a mac and am trying to install the Google Cloud SDK (including the gcloud command line utility) using this command in terminal

curl https://sdk.cloud         


        
28条回答
  •  感情败类
    2020-12-07 14:23

    This worked for me :

    After saying Y to Modify profile to update your $PATH and enable bash completion? (Y/n)?

    Google initiation is prompting this : Enter a path to an rc file to update, or leave blank to use and the default path was : [/Users/MY_USERSAME/.bash_profile]: but instead of pressing enter, I wrote : /Users/MY_USERNAME/.bashrc to change the path.

    This would overwrite the default location that Google suggest.

    Then, I only had to do source ~/.bashrc and everything works now!

提交回复
热议问题