LoginSignup
0
0

More than 1 year has passed since last update.

nvm-windowsでNode.jsの環境構築

Posted at
  • 任意のバージョンを使用したい場合に対応出来るようnvm-windowsを使用するための手順メモ。

nvm-windowsインストール

利用できるバージョンの確認

> nvm list available

|   CURRENT    |     LTS      |  OLD STABLE  | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
|    17.2.0    |   16.13.1    |   0.12.18    |   0.11.16    |
|    17.1.0    |   16.13.0    |   0.12.17    |   0.11.15    |
|    17.0.1    |   14.18.2    |   0.12.16    |   0.11.14    |
|    17.0.0    |   14.18.1    |   0.12.15    |   0.11.13    |
|   16.12.0    |   14.18.0    |   0.12.14    |   0.11.12    |
|   16.11.1    |   14.17.6    |   0.12.13    |   0.11.11    |
|   16.11.0    |   14.17.5    |   0.12.12    |   0.11.10    |
|   16.10.0    |   14.17.4    |   0.12.11    |    0.11.9    |
|    16.9.1    |   14.17.3    |   0.12.10    |    0.11.8    |
|    16.9.0    |   14.17.2    |    0.12.9    |    0.11.7    |
|    16.8.0    |   14.17.1    |    0.12.8    |    0.11.6    |
|    16.7.0    |   14.17.0    |    0.12.7    |    0.11.5    |
|    16.6.2    |   14.16.1    |    0.12.6    |    0.11.4    |
|    16.6.1    |   14.16.0    |    0.12.5    |    0.11.3    |
|    16.6.0    |   14.15.5    |    0.12.4    |    0.11.2    |
|    16.5.0    |   14.15.4    |    0.12.3    |    0.11.1    |
|    16.4.2    |   14.15.3    |    0.12.2    |    0.11.0    |
|    16.4.1    |   14.15.2    |    0.12.1    |    0.9.12    |
|    16.4.0    |   14.15.1    |    0.12.0    |    0.9.11    |
|    16.3.0    |   14.15.0    |   0.10.48    |    0.9.10    |

This is a partial list. For a complete list, visit https://nodejs.org/en/download/releases

ここに表示されないバージョンが利用できるかはここで確認。
https://nodejs.org/en/download/releases/

インストール

>nvm install 16.13.1
Downloading node.js version 16.13.1 (64-bit)...
Extracting...
Complete


Installation complete. If you want to use this version, type

nvm use 16.13.1

有効化

>nvm use 16.13.1
Now using node v16.13.1 (64-bit)

確認

>nvm list

  * 16.13.1 (Currently using 64-bit executable)

コマンドメモ

# ローカルにインストール済みのバージョン一覧表示
nvm list 
# インストール可能なバージョン一覧表示
nvm list available
# 任意のバージョンをインストール
nvm install x.x.x
# 指定したバージョンを有効にする
nvm use x.x.x
# ローカルからアンインストール
nvm uninstall x.x.x
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