Installed Google Cloud SDK but can't access gcloud

后端 未结 3 1281
有刺的猬
有刺的猬 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:48

    I had modified my

    vi ~/.bash_profile
    

    and added one line to the end of it

    source ~/.bashrc
    

    Then you can log out & logged in again or run:

    source ~/.bash_profile

    After you have added the line.

    OS: Linux vagrant-ubuntu-trusty-64 3.13.0-116-generic #163-Ubuntu

    Or Simply Run:

    echo "source ~/.bashrc" >> ~/.bash_profile
    source ~/.bash_profile
    which gcloud
    

    Showed me

    /home/myusername/google/google-cloud-sdk/bin/gcloud

提交回复
热议问题