在Windows上,gcloud未被识别为内部或外部命令 [英] gcloud not recognized as an internal or external command on Windows

查看:744
本文介绍了在Windows上,gcloud未被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows下安装Google App Engine(不使用Cygwin)。
运行bat脚本后,我关闭并重新打开 cmd.exe ,并在 google-cloud-sdk 目录。当我运行 gcloud auth login 命令时,出现错误:

 'gcloud'不被识别为内部或外部命令,
可操作的程序或批处理文件。


解决方案

我刚试了一遍,发现问题。

不会在系统变量路径中添加C:\google-cloud-sdk\bin。我补充说现在工作正常。


I am installing Google App Engine under Windows (not using Cygwin). After running the bat script, I closed and reopened the cmd.exe and entered inside the google-cloud-sdk directory. When I ran the command gcloud auth login, I'm getting the error:

'gcloud' is not recognized as an internal or external command,
operable program or batch file.

解决方案

I just tried it again and I found the issue.

C:\google-cloud-sdk\bin is not added in the system variable path. I added that it's working fine now.

这篇关于在Windows上,gcloud未被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆