menu
書いてる野郎
orebike@gmail.com
色々ある言語のバージョン管理系のツールを管理するツール。
とりあえず公式に従う
$ git clone https://github.com/anyenv/anyenv ~/.anyenv
こいつが実行本体のようだ。
~/.anyenv/bin/anyenv
.bashrc
にこのように書いておく。2つ目の記述は後で入れた各言語のバージョン管理ツールのパスを通す記述。
export PATH="$HOME/.anyenv/bin:$PATH"
インスコ
$ anyenv init # Load anyenv automatically by adding # the following to ~/.bash_profile: eval "$(anyenv init -)"
なんかデタ。
.bashrc
に追加
eval "$(anyenv init -)"
インストール出来るやつリスト見る
$ anyenv install -l ANYENV_DEFINITION_ROOT(/home/hoge/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by: > anyenv install --init
怒られる。 やる
$ anyenv install --init Manifest directory doesn't exist: /home/hoge/.config/anyenv/anyenv-install Do you want to checkout ? [y/N]: y Cloning https://github.com/anyenv/anyenv-install.git master to /home/hoge/.config/anyenv/anyenv-install... Cloning into '/home/hoge/.config/anyenv/anyenv-install'... remote: Enumerating objects: 48, done. remote: Total 48 (delta 0), reused 0 (delta 0), pack-reused 48 Unpacking objects: 100% (48/48), done.
再び
$ anyenv install -l Renv crenv denv erlenv exenv goenv hsenv jenv luaenv nodenv phpenv plenv pyenv rbenv sbtenv scalaenv swiftenv tfenv
デタ。OK
Node.js の管理はこれっぽいのでこれ入れる。
$ anyenv install nodenv
できたっぽい。
$ nodenv install --list Available versions: 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.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.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 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 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 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-dev-b01 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
12.9.0 だな
$ nodenv install 12.9.0 Downloading node-v12.9.0-linux-x64.tar.gz... -> https://nodejs.org/dist/v12.9.0/node-v12.9.0-linux-x64.tar.gz Installing node-v12.9.0-linux-x64... Installed node-v12.9.0-linux-x64 to /home/hoge/.anyenv/envs/nodenv/versions/12.9.0 No default-package file found
設定確認 OK
$ nodenv global 12.9.0 $ node -v v12.9.0 $ npm -v 6.10.2