Installiert Google Cloud SDK, aber Sie können nicht auf gcloud

Ich versuche, installieren Sie das Google Cloud SDK für OSX und dies tun node.js tutorial (https://cloud.google.com/nodejs/getting-started/hello-world) und laufen in ein problem, wo die gcloud nicht gefunden. Es könnte nur etwas einfacher, über Einstellung oder wo ich bin in die Datei speichern.

Ich gelesen habe eine Tonne von anderen posts hier aber nicht in der Lage, dieses problem zu lösen. Hier sind alle Schritte/Themen:

Ich bereits ein Projekt in der dev-Konsole.

Installieren die cloud-sdk

MacBook-Pro-2:~ nico$ curl https://sdk.cloud.google.com | bash

Dann gehen Sie durch den Prozess

Directory to extract under (this will create a directory google-cloud-sdk) (/Users/nico):

Do you want to help improve the Google Cloud SDK (Y/n)?  y

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

Enter path to an rc file to update, or leave blank to use [/Users/nico/.bash_profile]:

Dann habe ich versucht zu authentifizieren:

MacBook-Pro-2:~ nico$ gcloud auth login
-bash: gcloud: command not found

Dann ging ich in eine cloud-sdk-bin-Verzeichnis

MacBook-Pro-2:~ nico$ cd google-cloud-sdk/bin
MacBook-Pro-2:bin nico$ ./gcloud auth login

Authentifizierung erfolgreich war

 MacBook-Pro-2:bin nico$ ./gcloud config set project helloworld-project

Einstellung das Projekt erfolgreich war

MacBook-Pro-2:bin nico$ ./gcloud components update app

ERROR: (gcloud.components.update) Your current working directory is inside the Cloud SDK install root: /Users/nico/google-cloud-sdk.  
In order to perform this update, run the command from outside of this directory.

So, dann habe ich das Verzeichnis

 MacBook-Pro-2:test_project nico$ gcloud components update app
-bash: gcloud: command not found

Und jetzt funktioniert es nicht, muss ich für den gcloud irgendwo, so dass es sein kann, Zugriff weltweit? Wie kann ich es aktualisieren und Zugriff auf die gcloud Kommandozeilen-tool?

InformationsquelleAutor NicoM | 2015-06-27

Schreibe einen Kommentar