asdfのバージョンが上がったときに.asdf/shims/{packages} が No such file or directory になる
自分用覚え書き
いつも何したら解決するか忘れてしまうので。
こんな感じのエラーが出てくる
asdfでインストールしたコマンドを実行しようとしたとき
/Users/{username}/.asdf/shims/kubectl: line 4: /opt/homebrew/Cellar/asdf/0.10.0/libexec/bin/asdf: No such file or directory /Users/{username}/.asdf/shims/kubectl: line 4: exec: /opt/homebrew/Cellar/asdf/0.10.0/libexec/bin/asdf: cannot execute: No such file or directory
asdf reshim
しても直らない
とりあえずどうにかしたいとき
~/.asdf/shim
を消してからもう一回 asdf reshim
を実行したら、とりあえずなおる
$ rm -rf ~/.asdf/shims && asdf reshim