我正在使用 asdf 安装 ruby,但遇到如下问题:
$ asdf list
ruby
3.0.2
$ ruby -v
Command 'ruby' not found, but can be installed with:
sudo apt install ruby
如何链接ruby-v
到asdf?
我正在使用 asdf 安装 ruby,但遇到如下问题:
$ asdf list
ruby
3.0.2
$ ruby -v
Command 'ruby' not found, but can be installed with:
sudo apt install ruby
如何链接ruby-v
到asdf?
asdf
按照asdf-vm 文档卸载# Delete the following in your .bashrc file
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
# Remove the $HOME/.asdf directory and all asdf config files by typing
# the following in your terminal
rm -rf ${ASDF_DATA_DIR:-$HOME/.asdf}
rm -rf $HOME/.tool-versions $HOME/.asdfrc
asdf
,阅读我在成功使版本正确后所做的帖子在 WSL2 中安装 asdf(ruby、nodejs 和 yarn)