1
0

More than 1 year has passed since last update.

anyenv 経由で nodenv を導入した環境で新しい node.js を使う

Posted at

はじめに

上記記事に体変お世話になりました。
(当記事では新しい node.js の利用にフォーカス)

また、公式docはこちら

前提

  • any env 経由で nodenv が入っている
  • nodenv install -l しても、欲しい最新の node.js のバージョンが出てこない

手順

  • anyenv-update の plugin を入れてアップデート
    • mkdir -p $(anyenv root)/plugins
    • git clone https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update
    • anyenv update
  • nodenv install -l で新しい node.js のバージョンを確認する
  • 対象のバージョンを install する
    • ex. nodenv install 16.13.0
  • nodenv versions で install 結果を確認
  • nodenv global <バージョン> で切り替える
    • ex.nodenv global 16.13.0
  • nodenv versions で適用結果を確認
1
0
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
1
0