首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >术语“googet”不被识别为cmdlet、函数、脚本文件或可操作程序的名称。

术语“googet”不被识别为cmdlet、函数、脚本文件或可操作程序的名称。
EN

Stack Overflow用户
提问于 2022-09-07 07:00:13
回答 1查看 73关注 0票数 0

我按照这里中的说明在本地Windows机器上安装操作系统代理。

以下是我在PowerShell中遵循的步骤(作为管理员):

代码语言:javascript
复制
(New-Object Net.WebClient).DownloadFile("https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.ps1", "${env:UserProfile}\add-google-cloud-ops-agent-repo.ps1") Invoke-Expression "${env:UserProfile}\add-google-cloud-ops-agent-repo.ps1 -AlsoInstall"

一旦我执行此操作,输出是:

代码语言:javascript
复制
googet : The term 'googet' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\bot_runner_01\add-google-cloud-ops-agent-repo.ps1:171 char:10
+   if (! (googet listrepos | Select-String -quiet "https://packages.cl ...
+          ~~~~~~
    + CategoryInfo          : ObjectNotFound: (googet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

googet : The term 'googet' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\bot_runner_01\add-google-cloud-ops-agent-repo.ps1:198 char:24
+   if (! $Version -and (googet listrepos | Select-String -quiet "https ...
+                        ~~~~~~
    + CategoryInfo          : ObjectNotFound: (googet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

googet : The term 'googet' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\bot_runner_01\add-google-cloud-ops-agent-repo.ps1:205 char:10
+   if (! (googet installed google-cloud-ops-agent 2>&1 | Select-String ...
+          ~~~~~~
    + CategoryInfo          : ObjectNotFound: (googet:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

No changes made.

我怎么才能解决这个问题?谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-09-21 20:17:32

我也遇到了同样的问题,我发现在下面的页面中运行‘安装客户环境’脚本对我是有效的:环境

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73631294

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档