我的问题是,当我尝试运行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
我尝试了 stackoverflow 上的每个指南,没有任何帮助改变我的 env 变量,你可以想象,没有任何帮助。
我的 GOPATH 设置为 % USERPROFILE %\ go,这是我从官方网站安装的文件夹。我的路径变量有 % USERPROFILE %\ go\ bin。
我也得到同样的错误,当我尝试运行另一个命令go generate
golang / mock 库。
帮助我 PLS)我会提供任何截图 / 信息,如果需要的话
将 GOBIN 环境变量设置为 GOPATH / bin 帮助了我。
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(76条)