目次
文書の過去の版を表示しています。
anyenv - rbenv スタイルのオールインワン環境マネージャー
インストール
git コマンドで anyenv を ~/.anyenv に clone する。
$ git clone --depth 1 https://github.com/anyenv/anyenv ~/.anyenv
Cloning into '/home/tomoyan/.anyenv'... remote: Enumerating objects: 34, done. remote: Counting objects: 100% (34/34), done. remote: Compressing objects: 100% (28/28), done. remote: Total 34 (delta 0), reused 22 (delta 0), pack-reused 0 Receiving objects: 100% (34/34), 14.66 KiB | 4.88 MiB/s, done.
anyenv に PATH を通す。
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bashrc
bash の設定を反映させる。
$ . ~/.bashrc
anyenv の動作確認。
$ anyenv
anyenv 1.1.5 Usage: anyenv[ ] Some useful anyenv commands are: commands List all available anyenv commands local Show the local application-specific Any version global Show the global Any version install Install a **env uninstall Uninstall a specific **env version Show the current Any version and its origin versions List all Any versions available to **env See `anyenv help ' for information on a specific command. For full documentation, see: https://github.com/anyenv/anyenv#readme
anyenv の自動ロード設定
$ anyenv init
# Load anyenv automatically by adding # the following to ~/.bash_profile: eval "$(anyenv init -)"
表示された指示に従って、自動ロードの設定を追加する。
$ echo 'eval "$(anyenv init -)"' >> ~/.bash_profile
または、~/.profile が優先なディストリビューションでは、
$ echo 'eval "$(anyenv init -)"' >> ~/.profile
$ ls -al ... drwxr-xr-x 8 dietpi dietpi 4096 Apr 4 10:41 .anyenv -rw-r--r-- 1 dietpi dietpi 161 Dec 16 00:24 .profile
~/.bash_profile ではなく ~/.profile に統一しているディストリビューションでは、~/.bash_profile が存在していないので ~/.profile に設定を追記するべきです。新たに ~/.bash_profile を作成してしまうと元々の ~/.profile が実行されなくなって問題が起きる可能性があります😱
ログイン時のスクリプト実行優先順位は、以下の順番で且つ何れか1つだけが実行されます🤔
~/.bash_profile ~/.bash_login ~/.profile
参考: 【LPIC102】bashの設定ファイルと読み込み順序 LPICで学ぶLinux2 - SEワンタンの独学備忘録
bash の設定を反映させる。(exec bash –login)
$ exec $SHELL -l
ANYENV_DEFINITION_ROOT(/home/tomoyan/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: > anyenv install --init
インストール マニフェスト ディレクトリを初期化する
$ anyenv install --init
Manifest directory doesn't exist: /home/tomoyan/.config/anyenv/anyenv-install Do you want to checkout https://github.com/anyenv/anyenv-install.git? [y/N]: y Cloning https://github.com/anyenv/anyenv-install.git master to /home/tomoyan/.config/anyenv/anyenv-install... Cloning into '/home/tomoyan/.config/anyenv/anyenv-install'... remote: Enumerating objects: 71, done. remote: Counting objects: 100% (14/14), done. remote: Compressing objects: 100% (13/13), done. remote: Total 71 (delta 4), reused 3 (delta 1), pack-reused 57 Receiving objects: 100% (71/71), 13.15 KiB | 3.29 MiB/s, done. Resolving deltas: 100% (11/11), done. Completed!
インストールできる **env の一覧を表示
$ anyenv install -l | column -x -c 128
Renv crenv denv erlenv exenv goenv hsenv jenv jlenv kubectlenv luaenv nodenv phpenv plenv pyenv rbenv sbtenv scalaenv swiftenv tfenv
column コマンドは以下のコマンドでインストールする😉
- Fedora
$ sudo dnf install util-linux
- Raspberry Pi OS, DietPi
$ sudo apt install bsdextrautils
インストール マニフェスト ディレクトリが初期化されていない場合
$ anyenv install -l
ANYENV_DEFINITION_ROOT(/home/tomoyan/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: > anyenv install --init
ヘルプ
$ anyenv help install
Usage: anyenv install [-f|--force] [-s/--skip-existing] <**env> anyenv install -l|--list anyenv install --init [git-url] [git-ref] anyenv install --force-init [git-url] [git-ref] anyenv install --update -l/--list List all available **envs -f/--force Install even if the **env appears to be installed already -s/--skip-existing Skip if the version appears to be installed already --init Initialize install manifests with specified git repo or anyenv/anyenv-install --force-init Initialize install manifests without confirmation --update Update install manifests
プラグインのインストール
anyenv-update (anyenv とセットで必ずインストールを推奨)
anyenv-update プラグインは、anyenv 本体、anyenv のプラグイン、および、**env のすべてをコマンド一発で更新してくれるスグレモノ😆
インストール
$ mkdir -p $(anyenv root)/plugins && git clone --depth 1 https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update
Cloning into '/home/tomoyan/.anyenv/plugins/anyenv-update'... remote: Enumerating objects: 7, done. remote: Counting objects: 100% (7/7), done. remote: Compressing objects: 100% (6/6), done. remote: Total 7 (delta 0), reused 3 (delta 0), pack-reused 0 Receiving objects: 100% (7/7), 4.06 KiB | 4.06 MiB/s, done.
動作確認
$ anyenv update
Updating 'anyenv'... | From https://github.com/anyenv/anyenv | 610ce3b..95a0419 master -> origin/master Updating 'anyenv/anyenv-update'... Updating 'nodenv'... Updating 'nodenv/node-build'... Updating 'nodenv/nodenv-vars'... Updating 'rbenv'... | From https://github.com/rbenv/rbenv | 585ed84..c4395e5 master -> origin/master | * [new tag] v1.2.0 -> v1.2.0 Updating 'rbenv/ruby-build'... Updating 'anyenv manifest directory'...
**env のインストール
インストール可能な **env
rbenv
rbenv のインストール
Ruby をインストールするための rbdenv をインストールする。
$ anyenv install rbenv
/tmp/rbenv.20220725074500.2617 ~ Cloning https://github.com/rbenv/rbenv.git master to rbenv... Cloning into 'rbenv'... remote: Enumerating objects: 3017, done. remote: Counting objects: 100% (121/121), done. remote: Compressing objects: 100% (70/70), done. remote: Total 3017 (delta 64), reused 93 (delta 51), pack-reused 2896 Receiving objects: 100% (3017/3017), 607.34 KiB | 711.00 KiB/s, done. Resolving deltas: 100% (1873/1873), done. ~ ~/.anyenv/envs/rbenv/plugins ~ Cloning https://github.com/rbenv/ruby-build.git master to ruby-build... Cloning into 'ruby-build'... remote: Enumerating objects: 13023, done. remote: Counting objects: 100% (1744/1744), done. remote: Compressing objects: 100% (201/201), done. remote: Total 13023 (delta 1663), reused 1547 (delta 1543), pack-reused 11279 Receiving objects: 100% (13023/13023), 2.61 MiB | 836.00 KiB/s, done. Resolving deltas: 100% (8879/8879), done. ~ Install rbenv succeeded! Please reload your profile (exec $SHELL -l) or open a new session.
rbenv の動作確認。
$ exec $SHELL -l $ rbenv
rbenv 1.2.0-16-gc4395e5 Usage: rbenv[ ] Some useful rbenv commands are: commands List all available rbenv commands local Set or show the local application-specific Ruby version global Set or show the global Ruby version shell Set or show the shell-specific Ruby version install Install a Ruby version using ruby-build uninstall Uninstall a specific Ruby version rehash Rehash rbenv shims (run this after installing executables) version Show the current Ruby version and its origin versions List installed Ruby versions which Display the full path to an executable whence List all Ruby versions that contain the given executable See `rbenv help ' for information on a specific command. For full documentation, see: https://github.com/rbenv/rbenv#readme
ヘルプ[help]
$ rbenv help install
Usage: rbenv install [-f|-s] [-kpv]rbenv install [-f|-s] [-kpv] rbenv install -l|--list rbenv install --version -l/--list List latest stable versions for each Ruby -L/--list-all List all local versions -f/--force Install even if the version appears to be installed already -s/--skip-existing Skip if the version appears to be installed already ruby-build options: -k/--keep Keep source tree in $RBENV_BUILD_ROOT after installation (defaults to $RBENV_ROOT/sources) -p/--patch Apply a patch from stdin before building -v/--verbose Verbose mode: print compilation status to stdout --version Show version of ruby-build For detailed information on installing Ruby versions with ruby-build, including a list of environment variables for adjusting compilation, see: https://github.com/rbenv/ruby-build#usage
nodenv
nodenv のインストール
Node.js をインストールするための nodenv をインストールする。
$ anyenv install nodenv
/tmp/nodenv.20220906112533.21705 ~ Cloning https://github.com/nodenv/nodenv.git master to nodenv... Cloning into 'nodenv'... remote: Enumerating objects: 4027, done. remote: Counting objects: 100% (24/24), done. remote: Compressing objects: 100% (22/22), done. remote: Total 4027 (delta 6), reused 10 (delta 1), pack-reused 4003 Receiving objects: 100% (4027/4027), 734.40 KiB | 2.28 MiB/s, done. Resolving deltas: 100% (2637/2637), done. ~ ~/.anyenv/envs/nodenv/plugins ~ Cloning https://github.com/nodenv/node-build.git master to node-build... Cloning into 'node-build'... remote: Enumerating objects: 21422, done. remote: Counting objects: 100% (1198/1198), done. remote: Compressing objects: 100% (595/595), done. remote: Total 21422 (delta 520), reused 1024 (delta 504), pack-reused 20224 Receiving objects: 100% (21422/21422), 3.83 MiB | 1.99 MiB/s, done. Resolving deltas: 100% (13422/13422), done. ~ ~/.anyenv/envs/nodenv/plugins ~ Cloning https://github.com/nodenv/nodenv-vars.git master to nodenv-vars... Cloning into 'nodenv-vars'... remote: Enumerating objects: 211, done. remote: Total 211 (delta 0), reused 0 (delta 0), pack-reused 211 Receiving objects: 100% (211/211), 31.82 KiB | 651.00 KiB/s, done. Resolving deltas: 100% (76/76), done. ~ Install nodenv succeeded! Please reload your profile (exec $SHELL -l) or open a new session.
nodenv の動作確認。
$ exec $SHELL -l $ nodenv
nodenv 1.4.0+5.acf64b3 Usage: nodenv[ ] Some useful nodenv commands are: commands List all available nodenv commands local Set or show the local application-specific Node version global Set or show the global Node version shell Set or show the shell-specific Node version install Install a Node version using node-build uninstall Uninstall a specific Node version rehash Rehash nodenv shims (run this after installing executables) version Show the current Node version and its origin versions List installed Node versions which Display the full path to an executable whence List all Node versions that contain the given executable See `nodenv help <command>' for information on a specific command. For full documentation, see: https://github.com/nodenv/nodenv#readme
ヘルプ[help]
$ nodenv help install
Usage: nodenv install [-f|-s] [-kpv]nodenv install [-f|-s] [-kpv] nodenv install -l|--list nodenv install --version -l/--list List all available versions -f/--force Install even if the version appears to be installed already -s/--skip-existing Skip if the version appears to be installed already node-build options: -c/--compile Force compilation even if a matching binary exists -k/--keep Keep source tree in $NODENV_BUILD_ROOT after installation (defaults to $NODENV_ROOT/sources) -p/--patch Apply a patch from stdin before building -v/--verbose Verbose mode: print compilation status to stdout --version Show version of node-build For detailed information on installing Node versions with node-build, including a list of environment variables for adjusting compilation, see: https://github.com/nodenv/node-build#usage
インストール可能な Node.js バージョン一覧
インストールしたい Node バージョンが無いとか悩む必要はない🤔
anyenv-update プラグインで nodenv も node-build もコマンド一発でいつも最新に保てる😉
$ anyenv update nodenv
Updating 'nodenv'... Updating 'nodenv/node-build'... | From https://github.com/nodenv/node-build | * [new branch] latest-scraped-definitions -> origin/latest-scraped-definitions Updating 'nodenv/nodenv-vars'... Updating 'anyenv manifest directory'...
バージョン一覧を表示する🤤
$ nodenv install -l | column -x -c 128
0.1.14 0.1.15 0.1.16 0.1.17 0.1.18 0.1.19 0.1.20 0.1.21 0.1.22 0.1.23 0.1.24 0.1.25 0.1.26 0.1.27 0.1.28 0.1.29 0.1.30 0.1.31 0.1.32 0.1.33 0.1.90 0.1.91 0.1.92 0.1.93 0.1.94 0.1.95 0.1.96 0.1.97 0.1.98 0.1.99 0.1.100 0.1.101 0.1.102 0.1.103 0.1.104 0.2.0 0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.3.0 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.4.0 0.4.1 0.4.2 0.4.3 0.4.4 0.4.5 0.4.6 0.4.7 0.4.8 0.4.9 0.4.10 0.4.11 0.4.12 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.5.8 0.5.9 0.5.10 0.6.0 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.6.9 0.6.10 0.6.11 0.6.12 0.6.13 0.6.14 0.6.15 0.6.16 0.6.17 0.6.18 0.6.19 0.6.20 0.6.21 0.7.0 0.7.1 0.7.2 0.7.3 0.7.4 0.7.5 0.7.6 0.7.7 0.7.8 0.7.9 0.7.10 0.7.11 0.7.12 0.8.0 0.8.1 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.8.8 0.8.9 0.8.10 0.8.11 0.8.12 0.8.13 0.8.14 0.8.15 0.8.16 0.8.17 0.8.18 0.8.19 0.8.20 0.8.21 0.8.22 0.8.23 0.8.24 0.8.25 0.8.26 0.8.27 0.8.28 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 0.9.10 0.9.11 0.9.12 0.10.0 0.10-dev 0.10-next 0.10.1 0.10.2 0.10.3 0.10.4 0.10.5 0.10.6 0.10.7 0.10.8 0.10.9 0.10.10 0.10.11 0.10.12 0.10.13 0.10.14 0.10.15 0.10.16 0.10.17 0.10.18 0.10.19 0.10.20 0.10.21 0.10.22 0.10.23 0.10.24 0.10.25 0.10.26 0.10.27 0.10.28 0.10.29 0.10.30 0.10.31 0.10.32 0.10.33 0.10.34 0.10.35 0.10.36 0.10.37 0.10.38 0.10.39 0.10.40 0.10.41 0.10.42 0.10.43 0.10.44 0.10.45 0.10.46 0.10.47 0.10.48 0.11.0 0.11.1 0.11.2 0.11.3 0.11.4 0.11.5 0.11.6 0.11.7 0.11.8 0.11.9 0.11.10 0.11.11 0.11.12 0.11.13 0.11.14 0.11.15 0.11.16 0.12.0 0.12-dev 0.12-next 0.12.1 0.12.2 0.12.3 0.12.4 0.12.5 0.12.6 0.12.7 0.12.8 0.12.9 0.12.10 0.12.11 0.12.12 0.12.13 0.12.14 0.12.15 0.12.16 0.12.17 0.12.18 4.0.0 4.x-dev 4.x-next 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.5.0 4.6.0 4.6.1 4.6.2 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.9.0 4.9.1 5.0.0 5.x-next 5.1.0 5.1.1 5.2.0 5.3.0 5.4.0 5.4.1 5.5.0 5.6.0 5.7.0 5.7.1 5.8.0 5.9.0 5.9.1 5.10.0 5.10.1 5.11.0 5.11.1 5.12.0 6.0.0 6.x-dev 6.x-next 6.1.0 6.2.0 6.2.1 6.2.2 6.3.0 6.3.1 6.4.0 6.5.0 6.6.0 6.7.0 6.8.0 6.8.1 6.9.0 6.9.1 6.9.2 6.9.3 6.9.4 6.9.5 6.10.0 6.10.1 6.10.2 6.10.3 6.11.0 6.11.1 6.11.2 6.11.3 6.11.4 6.11.5 6.12.0 6.12.1 6.12.2 6.12.3 6.13.0 6.13.1 6.14.0 6.14.1 6.14.2 6.14.3 6.14.4 6.15.0 6.15.1 6.16.0 6.17.0 6.17.1 7.0.0 7.x-dev 7.x-next 7.1.0 7.2.0 7.2.1 7.3.0 7.4.0 7.5.0 7.6.0 7.7.0 7.7.1 7.7.2 7.7.3 7.7.4 7.8.0 7.9.0 7.10.0 7.10.1 8.0.0 8.x-dev 8.x-next 8.1.0 8.1.1 8.1.2 8.1.3 8.1.4 8.2.0 8.2.1 8.3.0 8.4.0 8.5.0 8.6.0 8.7.0 8.8.0 8.8.1 8.9.0 8.9.1 8.9.2 8.9.3 8.9.4 8.10.0 8.11.0 8.11.1 8.11.2 8.11.3 8.11.4 8.12.0 8.13.0 8.14.0 8.14.1 8.15.0 8.15.1 8.16.0 8.16.1 8.16.2 8.17.0 9.0.0 9.x-dev 9.x-next 9.1.0 9.2.0 9.2.1 9.3.0 9.4.0 9.5.0 9.6.0 9.6.1 9.7.0 9.7.1 9.8.0 9.9.0 9.10.0 9.10.1 9.11.0 9.11.1 9.11.2 10.0.0 10.x-dev 10.x-next 10.1.0 10.2.0 10.2.1 10.3.0 10.4.0 10.4.1 10.5.0 10.6.0 10.7.0 10.8.0 10.9.0 10.10.0 10.11.0 10.12.0 10.13.0 10.14.0 10.14.1 10.14.2 10.15.0 10.15.1 10.15.2 10.15.3 10.16.0 10.16.1 10.16.2 10.16.3 10.17.0 10.18.0 10.18.1 10.19.0 10.20.0 10.20.1 10.21.0 10.22.0 10.22.1 10.23.0 10.23.1 10.23.2 10.23.3 10.24.0 10.24.1 11.0.0 11.x-dev 11.x-next 11.1.0 11.2.0 11.3.0 11.4.0 11.5.0 11.6.0 11.7.0 11.8.0 11.9.0 11.10.0 11.10.1 11.11.0 11.12.0 11.13.0 11.14.0 11.15.0 12.0.0 12.x-dev 12.x-next 12.1.0 12.2.0 12.3.0 12.3.1 12.4.0 12.5.0 12.6.0 12.7.0 12.8.0 12.8.1 12.9.0 12.9.1 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.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.4 12.19.0 12.19.1 12.20.0 12.20.1 12.20.2 12.21.0 12.22.0 12.22.1 12.22.2 12.22.3 12.22.4 12.22.5 12.22.6 12.22.7 12.22.8 12.22.9 12.22.10 12.22.11 12.22.12 13.0.0 13.x-dev 13.x-next 13.0.1 13.1.0 13.2.0 13.3.0 13.4.0 13.5.0 13.6.0 13.7.0 13.8.0 13.9.0 13.10.0 13.10.1 13.11.0 13.12.0 13.13.0 13.14.0 14.0.0 14.x-dev 14.x-next 14.1.0 14.2.0 14.3.0 14.4.0 14.5.0 14.6.0 14.7.0 14.8.0 14.9.0 14.10.0 14.10.1 14.11.0 14.12.0 14.13.0 14.13.1 14.14.0 14.15.0 14.15.1 14.15.2 14.15.3 14.15.4 14.15.5 14.16.0 14.16.1 14.17.0 14.17.1 14.17.2 14.17.3 14.17.4 14.17.5 14.17.6 14.18.0 14.18.1 14.18.2 14.18.3 14.19.0 14.19.1 14.19.2 14.19.3 14.20.0 15.0.0 15.0.1 15.1.0 15.2.0 15.2.1 15.3.0 15.4.0 15.5.0 15.5.1 15.6.0 15.7.0 15.8.0 15.9.0 15.10.0 15.11.0 15.12.0 15.13.0 15.14.0 16.0.0 16.1.0 16.2.0 16.3.0 16.4.0 16.4.1 16.4.2 16.5.0 16.6.0 16.6.1 16.6.2 16.7.0 16.8.0 16.9.0 16.9.1 16.10.0 16.11.0 16.11.1 16.12.0 16.13.0 16.13.1 16.13.2 16.14.0 16.14.1 16.14.2 16.15.0 16.15.1 16.16.0 16.17.0 17.0.0 17.0.1 17.1.0 17.2.0 17.3.0 17.3.1 17.4.0 17.5.0 17.6.0 17.7.0 17.7.1 17.7.2 17.8.0 17.9.0 17.9.1 18.0.0 18.1.0 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0 18.7.0 18.8.0 chakracore-dev chakracore-nightly chakracore-8.1.2 chakracore-8.1.4 chakracore-8.2.1 chakracore-8.3.0 chakracore-8.4.0 chakracore-8.6.0 chakracore-8.9.4 chakracore-8.10.0 chakracore-8.11.1 chakracore-10.0.0 chakracore-10.1.0 chakracore-10.6.0 chakracore-10.13.0 graal+ce-1.0.0-rc1 graal+ce-1.0.0-rc10 graal+ce-1.0.0-rc11 graal+ce-1.0.0-rc12 graal+ce-1.0.0-rc13 graal+ce-1.0.0-rc14 graal+ce-1.0.0-rc15 graal+ce-1.0.0-rc16 graal+ce-1.0.0-rc2 graal+ce-1.0.0-rc3 graal+ce-1.0.0-rc4 graal+ce-1.0.0-rc5 graal+ce-1.0.0-rc6 graal+ce-1.0.0-rc7 graal+ce-1.0.0-rc8 graal+ce-1.0.0-rc9 graal+ce-19.0.0 graal+ce-19.0.2 graal+ce-19.1.0 graal+ce-19.1.1 graal+ce-19.2.0 graal+ce-19.2.0.1 graal+ce-19.2.0-dev-b01 graal+ce-19.2.1 graal+ce_java11-19.3.0 graal+ce_java11-19.3.0.2 graal+ce_java8-19.3.0 graal+ce_java8-19.3.0.2 graal+ce_java11-19.3.1 graal+ce_java8-19.3.1 graal+ce_java11-20.0.0 graal+ce_java8-20.0.0 iojs-0.12.0-dev iojs-1.0.0 iojs-1.x-dev iojs-1.0.1 iojs-1.0.2 iojs-1.0.3 iojs-1.0.4 iojs-1.1.0 iojs-1.2.0 iojs-1.3.0 iojs-1.4.1 iojs-1.4.2 iojs-1.4.3 iojs-1.5.0 iojs-1.5.1 iojs-1.6.0 iojs-1.6.1 iojs-1.6.2 iojs-1.6.3 iojs-1.6.4 iojs-1.7.1 iojs-1.8.1 iojs-1.8.2 iojs-1.8.3 iojs-1.8.4 iojs-2.0.0 iojs-2.0.1 iojs-2.0.2 iojs-2.1.0 iojs-2.2.0 iojs-2.2.1 iojs-2.3.0 iojs-2.3.1 iojs-2.3.2 iojs-2.3.3 iojs-2.3.4 iojs-2.4.0 iojs-2.5.0 iojs-3.0.0 iojs-3.1.0 iojs-3.2.0 iojs-3.3.0 iojs-3.3.1 nightly node-dev rc v8-canary
node のインストール
$ nodenv install 16.17.0
Downloading node-v16.17.0-linux-x64.tar.gz... -> https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.gz Installing node-v16.17.0-linux-x64... Installed node-v16.17.0-linux-x64 to /home/tomoyan/.anyenv/envs/nodenv/versions/16.17.0
$ nodenv rehash $ nodenv global 16.17.0 $ nodenv versions
* 16.17.0 (set by /home/tomoyan/.anyenv/envs/nodenv/version)
$ node -v
v16.17.0
$ npm -v
8.15.0
$ npm -g list
/home/tomoyan/.anyenv/envs/nodenv/versions/16.17.0/lib ├── corepack@0.12.1 └── npm@8.15.0