Node.jsのLTS版である12.18.3を入れたかったのでanyenvをアップデートしました。 その際のanyenvのアップデート手順となります。
nodenv install -l
...
12.10.0
12.11.0
12.11.1
12.12.0
12.13.0
12.13.1
12.14.0
12.14.1
...
12.14.1までしか現状ではインストールできない。。
anyenvのプラグインであるanyenv update
を入れるとanyenv update
コマンドによりアップデートできるようになるとのこと。
mkdir -p ~/.anyenv/plugins
git clone https://github.com/znz/anyenv-update.git ~/.anyenv/plugins/anyenv-update
anyenv update
コマンドが利用できるようになったため早速実行。
anyenv update
...
Updating 'phpenv/php-build'...
| From https://github.com/php-build/php-build
| 125c9d7..5145e55 master -> origin/master
| error: Your local changes to the following files would be overwritten by merge:
| share/php-build/default_configure_options
| Please commit your changes or stash them before you merge.
| Aborting
| Failed to update. Use 'verbose' option for detailed, or 'force' option.
...
phpenv/php-build
をpgsqlのextensionを追加する際に変更していたようで、php-buildだけupdateされませんでした。
cd ~/.anyenv/envs/phpenv/plugins/php-build
git stash save
anyenv update
git stash pop
これですべてアップデート完了です。
nodenv install -l
...
12.14.0
12.14.1
12.15.0
12.16.0
12.16.1
12.16.2
12.16.3
12.17.0
12.18.0
12.18.1
12.18.2
12.18.3
...
12.18.3がインストール可能となりました。
また、その他.phpenv
なども更新されていますね。
phpenv install -l
...
7.3.16
7.3.17
7.3.18
7.3.19
7.3.1
7.3.20
7.3.21
...