Installed Google Cloud SDK but can't access gcloud

后端 未结 3 1283
有刺的猬
有刺的猬 2021-02-04 05:57

I am trying to install the Google Cloud SDK on OSX and do this node.js tutorial (https://cloud.google.com/nodejs/getting-started/hello-world) and keep running into a problem whe

3条回答
  •  执笔经年
    2021-02-04 06:43

    In my ~/.bash_profile menu I had an error, at the top I had this line:

    if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/nico/.bash_profile
    

    Which was throwing an error and messed with gcloud, the weird thing is that other command line variables worked fine with that error.

    Once I removed that line gcloud worked fine.

提交回复
热议问题