没有为命令 go 设置版本
我尝试在 Ubuntu 计算机上使用 go version
检查我的 go
可执行文件的版本,但出现以下错误:
No version set for command go
Consider adding one of the following versions in your config file at
golang 1.16.8
golang 1.17.1
如何解决此问题?我以前没有配置文件的经验,我在谷歌上搜索,但没有找到任何可以解决这个问题的东西。
I attempted to check the version of my go
executable with go version
on an Ubuntu machine, however I got the following error:
No version set for command go
Consider adding one of the following versions in your config file at
golang 1.16.8
golang 1.17.1
How do I resolve this? I have no prior experience with config file, I searched on google but I found nothing which could solve this issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是来自
asdf-vm/asdf
的错误消息,一个使用单个 CLI 工具管理多个运行时版本的工具,可通过插件扩展。您可以在
asdf-vm/asdf
问题中看到该错误消息838..配置文件应位于
$HOME/.tool-versions
要解决此问题,如此示例
That seems to be an error message from
asdf-vm/asdf
, a tool which manages multiple runtime versions with a single CLI tool, extendable via plugins.You can see that error message in
asdf-vm/asdf
issue 838.The config file should be in
$HOME/.tool-versions
To resolve this, as in this example: