0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

🚀 MacにNVMとNode.jsをインストール

Last updated at Posted at 2025-01-26

Node.jsのバージョン管理ツールである NVM (Node Version Manager) を使ってNode.jsをインストールする手順を解説します。

📚 公式ドキュメント

NVMの詳細については、公式ドキュメントをご覧ください👇
https://github.com/nvm-sh/nvm

🛠️ NVMのインストール方法

NVMのインストール

公式サイトで公開されているインストールコマンドを実行します

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
プロファイルを再読み込み

インストール後、以下を実行してプロファイルを再読み込みします

source ~/.zshrc
インストール確認
command -v nvm

📦 Node.jsのインストール手順

インストール可能なバージョンを確認

以下のコマンドで利用可能なNode.jsのバージョン一覧を表示します

nvm ls-remote

表示例: v22.11.0 (Latest LTS: Jod)

Node.jsのインストール

任意のバージョン(例: 22.11.0)をインストールします

nvm install 22.11.0

これで、NVMを使ったNode.jsのインストールは完了です🎉

バージョン管理が簡単になるNVMをぜひ活用してください😊

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?