1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

asdfバージョン0.18.0インストールしたが、v0.15.0-80fffd8と表示された

1
Last updated at Posted at 2026-01-27

はじめに

Reactの環境構築のためにnode.jsのバージョン管理として、asdfの最新バージョンをインストールしようとしたときに起きたことです。

環境

WSL2
Ubuntu 24.04.3 LTS (Noble Numbat)

問題

asdfをリポジトリから最新バージョンをインストールしました。

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.18.0

その後、各種設定をしたのですが、asdf versionで確認すると、

NOTICE:

You have tried to upgrade to asdf 0.16.0 or newer. Versions 0.16.0 is a
complete rewrite of asdf in Go. This text is being printed by the older
Bash implementation. If you are seeing this you have not migrated to
asdf 0.16.0. Please follow the instructions on the upgrade guide to
migrate to the new version.

Aside from this notice, this older Bash implementation works as it did
in asdf version 0.15.0 and older.

Migration guide: https://asdf-vm.com/guide/upgrading-to-v0-16
asdf website: https://asdf-vm.com
Source code: https://github.com/asdf-vm/asdf

version: v0.15.0-80fffd8

と表示されました。

解決方法

公式ドキュメントによると、バージョン0.16.0以降でインストールの方法が大きく変わっていたみたいです。

公式ドキュメントの「Build from Source」の方法でインストールをしたら、うまくいきました。
ほとんど内容は 手順を記載しておきます。

  1. リポジトリをクローンする(クローン済みの方はここは飛ばしてください)

    git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.18.0
    
  2. Go言語をインストール(バージョンは https://go.dev/dl/ から確認)

     wget https://go.dev/dl/go1.25.6.linux-amd64.tar.gz
     sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.25.6.linux-amd64.tar.gz
     echo 'export PATH="$PATH:/usr/local/go/bin"' >> ~/.bashrc
     source ~/.bashrc
    
  3. ビルド

    cd ~/.asdf && make
    
  4. ビルドしたバイナリファイルを/usr/local/binにコピー

    sudo cp asdf /usr/local/bin
    
  5. ~/.bashrcに下記を追加して、保存

    export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
    . <(asdf completion bash)
    
  6. ~/.bashrcを更新

    source ~/.bashrc
    
  7. バージョンを確認。インストールしたバージョンが表示されていれば、成功

    asdf version
    

おわりに

解決に至るまでに、公式ドキュメントが推奨しているパッケージマネージャーでインストールする方法を試したりしており、小一時間ロスしました。

参考

ubuntu初心者によるasdf0.16.0導入方法
公式ドキュメント
Go言語 インストール手順

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?