LoginSignup
1
1

More than 3 years have passed since last update.

[メモ] anyenv で nodenv を使う

Posted at

前提

homebrew をインストールしていること。

手順

anyenv のインストール

brew install anyenv
anyenv init
anyenv install --init

また、.zshrc (使っているシェルの設定ファイル) に以下を追記する。

# anyenv
eval "$(anyenv init -)"

nodenv のインストール

anyenv install nodenv

バージョンを指定して Node.js をインストール

nodenv install 10.16.3
nodenv rehash
nodenv global 10.16.3

動作確認

node -v # -> v10.16.3
1
1
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
1