LoginSignup
0
1

More than 3 years have passed since last update.

Node.js のバージョン管理ツール nvm for Windowsを導入

Posted at

導入背景

ローカル環境とデプロイ先の環境でNode.jsのバージョンに差異があり、その管理を行うため。

nvm for Windowsをインストール

nvm-setup.zipをダウンロードし、インストール
公式からダウンロード

nvm for Windows のコマンド

  • インストール可能なバージョンリストを表示
>nvm list available

|   CURRENT    |     LTS      |  OLD STABLE  | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
|    14.2.0    |   12.16.3    |   0.12.18    |   0.11.16    |
|    14.1.0    |   12.16.2    |   0.12.17    |   0.11.15    |
|    14.0.0    |   12.16.1    |   0.12.16    |   0.11.14    |
|   13.14.0    |   12.16.0    |   0.12.15    |   0.11.13    |
|   13.13.0    |   12.15.0    |   0.12.14    |   0.11.12    |
|   13.12.0    |   12.14.1    |   0.12.13    |   0.11.11    |
|   13.11.0    |   12.14.0    |   0.12.12    |   0.11.10    |
|   13.10.1    |   12.13.1    |   0.12.11    |    0.11.9    |
|   13.10.0    |   12.13.0    |   0.12.10    |    0.11.8    |
|    13.9.0    |   10.20.1    |    0.12.9    |    0.11.7    |
|    13.8.0    |   10.20.0    |    0.12.8    |    0.11.6    |
|    13.7.0    |   10.19.0    |    0.12.7    |    0.11.5    |
|    13.6.0    |   10.18.1    |    0.12.6    |    0.11.4    |
|    13.5.0    |   10.18.0    |    0.12.5    |    0.11.3    |
|    13.4.0    |   10.17.0    |    0.12.4    |    0.11.2    |
|    13.3.0    |   10.16.3    |    0.12.3    |    0.11.1    |
|    13.2.0    |   10.16.2    |    0.12.2    |    0.11.0    |
|    13.1.0    |   10.16.1    |    0.12.1    |    0.9.12    |
|    13.0.1    |   10.16.0    |    0.12.0    |    0.9.11    |
|    13.0.0    |   10.15.3    |   0.10.48    |    0.9.10    |
  • 特定のバージョンの node をインストール
>nvm install 10.20.1
Downloading node.js version 10.20.1 (64-bit)...
Complete
  • インストール済みのバージョンリストを表示
>nvm list
  * 12.16.3 (Currently using 64-bit executable)
    10.20.1
  • 使用するバージョンを指定する
>nvm use 10.20.1
Now using node v10.20.1 (64-bit)
0
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
0
1