asdf 導入
インストール
code:shell
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.3
Manage asdf-vm - asdf vm - An extendable version manager
各 shell によって PATH への追加は違うためそれに合わせてコマンド選択
己のアップデート
code:shell
$ asdf update
プラグイン
一覧はここ All Plugins - asdf vm - An extendable version manager
**env とは具合が違いコマンドが asdf 分ちょっと多い
nodejs
$ asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
OSコアのネイティブモジュールが必要になるので注意
$ brew install gpg coreutils
また release チームの OpenPGP key をインポートする必要あるらしい
$ bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
会社でだめだった
https://github.com/asdf-vm/asdf-nodejs#related-notes
NODEJS_CHECK_SIGNATURES=no にした
python
$ asdf plugin-add python https://github.com/danhper/asdf-python.git
ruby
$ asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
yarn
yarn があるのは嬉しい
$ asdf plugin-add yarn https://github.com/twuni/asdf-yarn.git
list-all (including remote versions)
$ asdf list-all ruby
list (local)
code:shell
$ asdf list
nodejs
10.16.1
python
3.7.4
ruby
2.6.3
yarn
1.17.3
code:shell
$ asdf list ruby
2.6.3
install
$ asdf install ruby 2.6.3
global
$asdf global ruby 2.6.3