1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[メモ] anyenv で nodenv を使う

1
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?