小编nev*_*dhf的帖子

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

我的问题是,当我尝试运行时,swag init我看到以下内容

swag : The term 'swag' 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 line:1 char:1
+ swag init
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (swag:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

我尝试了 stackoverflow 上的所有指南,但没有任何帮助以你能想象到的方式改变我的环境变量,没有任何帮助。

我的 GOPATH 设置为 %USERPROFILE%\go,这是我从官方网站安装 go 的文件夹。我的 Path 变量有 %USERPROFILE%\go\bin。

当我尝试go generate为 …

powershell command-line swagger

1
推荐指数
2
解决办法
8599
查看次数

标签 统计

command-line ×1

powershell ×1

swagger ×1