LoginSignup
40
25

More than 5 years have passed since last update.

ndenv から nodenv に乗り換える

Last updated at Posted at 2018-12-27

ndenv local が動作しなかったため、github(riywo/ndenv)を見に行ったら、乗り換え推奨してた。

[Deprecated] nodenv is better alternative
Please consider to use nodenv. ndenv repository is not maintained actively.

幸い anyenv から nodenv がインストール可能。

nodenv インストール

$ anyenv install nodenv
$ exec $SHELL -l

$ nodenv -v
nodenv 1.2.0-3-gd5fb564

ndenv はアンインストールする

$ anyenv uninstall ndenv

node をインストールする

$ nodenv install -l
Available versions:
  0.1.14
  0.1.15
  0.1.16
  0.1.17
  0.1.18
  ︙

$ nodenv install 8.11.4
$ nodenv global 8.11.4
$ node -v
v8.11.4

ndenv時代に生成された .node-version は nodenv でも使るのでストレスレス

40
25
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
40
25