Gcloud beta emulators data store start error Google/Cloud is not recognized as an internal or external command

眉间皱痕 提交于 2019-12-24 07:16:07

问题


In developing php appengine standard app, I wanted a local development datastore so I ran- gcloud components install cloud-datastore-emulator I also installed google cloud data store globally using

composer require google\cloud_datastore

After that tried to start the emulator with

gcloud beta emulators datastore  start --data-dir="C:\Users\Hellen\Desktop\New folder\myDstore"

But the command failed with the following output.

WARNING: Reusing existing data in [C:\Users\Hellen\Desktop\New folder\myDstore]. Executing: cmd /c C:\Users\Hellen\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\cloud-datastore-emulator\cloud_datastore_emulator.cmd start --host=localhost --port=8081 --store_on_disk=True --consistency=0.9 --allow_remote_shutdown C:\Users\Hellen\Desktop\New folder\myDstore [datastore] 'C:\Users\Hellen\AppData\Local\Google\Cloud' is not recognized as an internal or external command, [datastore] operable program or batch file.

Can someone tell me what the problem is? I really don't know what next to try.


回答1:


The problem was that I had both app engine server installed and Google cloud SDK, and both have similar commands. So I uninstalled both and installed only gcloud SDK. Thanks so much for the hint.



来源:https://stackoverflow.com/questions/50231864/gcloud-beta-emulators-data-store-start-error-google-cloud-is-not-recognized-as-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!