| サンプル集 |
|
■VC ■C# ■Java ■BorlandC ■LinuxC ■MS-DOS ■bash ■Excel VBA ■VBScript ■PHP ■HTML ■perl ■iPhone ■Android ■Lua ■WordPress ■PowerShell ■Python ■Flutter ■Rust ■Node.js ■ReactNative ■other |
| Linuxコマンド |
| 用語集 |
| debian メモ |
| apache2 メモ |
| MySQL メモ |
| Oracle メモ |
| PostgreSQL |
| HOME |
NVMとNode.jsをインストールします。
◆環境| OS | Windows 10 Home 20H2 64bit OS x64 プロセッサ |
|---|
NVM
Node Version ManagerはNode.jsの管理ツールだそうです。
PowerShellでのchocolateyを使ったnvmのインストールコマンドです。
choco install nvm -y
PowerShellを管理者で実行しコマンドを実行します。
PS C:\Windows\system32> choco install nvm -y
Chocolatey v0.11.3
Installing the following packages:
nvm
By installing, you accept licenses for the packages.
Progress: Downloading nvm.portable 1.1.7... 100%
Progress: Downloading nvm 1.1.5... 100%
nvm.portable v1.1.7 [Approved]
nvm.portable package files install completed. Performing other instal
lation steps.
Downloading nvm
from 'https://github.com/coreybutler/nvm-windows/releases/download/
1.1.7/nvm-noinstall.zip'
Progress: 100% - Completed download of C:\Users\xxxxx\AppData\Local\T
emp\chocolatey\nvm.portable\1.1.7\nvm-noinstall.zip (2.3 MB).
Download of nvm-noinstall.zip (2.3 MB) completed.
Hashes match.
Extracting C:\Users\xxxxx\AppData\Local\Temp\chocolatey\nvm.portable\
1.1.7\nvm-noinstall.zip to C:\ProgramData\nvm...
C:\ProgramData\nvm
PATH environment variable does not have %NVM_HOME% in it. Adding...
PATH environment variable does not have %NVM_SYMLINK% in it. Adding..
.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of nvm.portable was successful.
Software installed to 'C:\ProgramData\nvm'
nvm v1.1.5 [Approved]
nvm package files install completed. Performing other installation st
eps.
The install of nvm was successful.
Software install location not explicitly set, it could be in packag
e or
default install location of installer.
Chocolatey installed 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.l
og).
PS C:\Windows\system32>
Chocolatey v0.11.3
Installing the following packages:
nvm
By installing, you accept licenses for the packages.
Progress: Downloading nvm.portable 1.1.7... 100%
Progress: Downloading nvm 1.1.5... 100%
nvm.portable v1.1.7 [Approved]
nvm.portable package files install completed. Performing other instal
lation steps.Downloading nvm
from 'https://github.com/coreybutler/nvm-windows/releases/download/
1.1.7/nvm-noinstall.zip'Progress: 100% - Completed download of C:\Users\xxxxx\AppData\Local\T
emp\chocolatey\nvm.portable\1.1.7\nvm-noinstall.zip (2.3 MB).Download of nvm-noinstall.zip (2.3 MB) completed.
Hashes match.
Extracting C:\Users\xxxxx\AppData\Local\Temp\chocolatey\nvm.portable\
1.1.7\nvm-noinstall.zip to C:\ProgramData\nvm...C:\ProgramData\nvm
PATH environment variable does not have %NVM_HOME% in it. Adding...
PATH environment variable does not have %NVM_SYMLINK% in it. Adding..
.Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of nvm.portable was successful.
Software installed to 'C:\ProgramData\nvm'
nvm v1.1.5 [Approved]
nvm package files install completed. Performing other installation st
eps.The install of nvm was successful.
Software install location not explicitly set, it could be in packag
e ordefault install location of installer.
Chocolatey installed 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.l
og).PS C:\Windows\system32>
環境変数が変更されたのでシェル(PowerShell or cmd)を閉じて再度開いてくださいと表示されているので、いったんPowerShellを閉じて開きなおします。
Node.js
インストール可能なバージョンを表示します。
PS C:\Windows\system32> nvm list available
| CURRENT | LTS | OLD STABLE | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
| 17.0.1 | 16.13.0 | 0.12.18 | 0.11.16 |
| 17.0.0 | 14.18.1 | 0.12.17 | 0.11.15 |
| 16.12.0 | 14.18.0 | 0.12.16 | 0.11.14 |
| 16.11.1 | 14.17.6 | 0.12.15 | 0.11.13 |
| 16.11.0 | 14.17.5 | 0.12.14 | 0.11.12 |
| 16.10.0 | 14.17.4 | 0.12.13 | 0.11.11 |
| 16.9.1 | 14.17.3 | 0.12.12 | 0.11.10 |
| 16.9.0 | 14.17.2 | 0.12.11 | 0.11.9 |
| 16.8.0 | 14.17.1 | 0.12.10 | 0.11.8 |
| 16.7.0 | 14.17.0 | 0.12.9 | 0.11.7 |
| 16.6.2 | 14.16.1 | 0.12.8 | 0.11.6 |
| 16.6.1 | 14.16.0 | 0.12.7 | 0.11.5 |
| 16.6.0 | 14.15.5 | 0.12.6 | 0.11.4 |
| 16.5.0 | 14.15.4 | 0.12.5 | 0.11.3 |
| 16.4.2 | 14.15.3 | 0.12.4 | 0.11.2 |
| 16.4.1 | 14.15.2 | 0.12.3 | 0.11.1 |
| 16.4.0 | 14.15.1 | 0.12.2 | 0.11.0 |
| 16.3.0 | 14.15.0 | 0.12.1 | 0.9.12 |
| 16.2.0 | 12.22.7 | 0.12.0 | 0.9.11 |
| 16.1.0 | 12.22.6 | 0.10.48 | 0.9.10 |
This is a partial list. For a complete list, visit https://nodejs.org
/download/release
PS C:\Windows\system32>
| CURRENT | LTS | OLD STABLE | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
| 17.0.1 | 16.13.0 | 0.12.18 | 0.11.16 |
| 17.0.0 | 14.18.1 | 0.12.17 | 0.11.15 |
| 16.12.0 | 14.18.0 | 0.12.16 | 0.11.14 |
| 16.11.1 | 14.17.6 | 0.12.15 | 0.11.13 |
| 16.11.0 | 14.17.5 | 0.12.14 | 0.11.12 |
| 16.10.0 | 14.17.4 | 0.12.13 | 0.11.11 |
| 16.9.1 | 14.17.3 | 0.12.12 | 0.11.10 |
| 16.9.0 | 14.17.2 | 0.12.11 | 0.11.9 |
| 16.8.0 | 14.17.1 | 0.12.10 | 0.11.8 |
| 16.7.0 | 14.17.0 | 0.12.9 | 0.11.7 |
| 16.6.2 | 14.16.1 | 0.12.8 | 0.11.6 |
| 16.6.1 | 14.16.0 | 0.12.7 | 0.11.5 |
| 16.6.0 | 14.15.5 | 0.12.6 | 0.11.4 |
| 16.5.0 | 14.15.4 | 0.12.5 | 0.11.3 |
| 16.4.2 | 14.15.3 | 0.12.4 | 0.11.2 |
| 16.4.1 | 14.15.2 | 0.12.3 | 0.11.1 |
| 16.4.0 | 14.15.1 | 0.12.2 | 0.11.0 |
| 16.3.0 | 14.15.0 | 0.12.1 | 0.9.12 |
| 16.2.0 | 12.22.7 | 0.12.0 | 0.9.11 |
| 16.1.0 | 12.22.6 | 0.10.48 | 0.9.10 |
This is a partial list. For a complete list, visit https://nodejs.org
/download/releasePS C:\Windows\system32>
「CURRENT」は最新版だが安定性はわからないもので、「LTS」(Long-term Support)は長期の保守が計画されているバージョンのようです。
16.13.0をインストールします。
PS C:\Windows\system32> nvm install 16.13.0
Downloading node.js version 16.13.0 (64-bit)...
Complete
Creating C:\ProgramData\nvm\temp
Downloading npm version 8.1.0... Complete
Installing npm v8.1.0...
Installation complete. If you want to use this version, type
nvm use 16.13.0
PS C:\Windows\system32>
Downloading node.js version 16.13.0 (64-bit)...
Complete
Creating C:\ProgramData\nvm\temp
Downloading npm version 8.1.0... Complete
Installing npm v8.1.0...
Installation complete. If you want to use this version, type
nvm use 16.13.0
PS C:\Windows\system32>
インストールした16.13.0を利用できるようにします。
PS C:\Windows\system32> nvm use 16.13.0
Now using node v16.13.0 (64-bit)
PS C:\Windows\system32>
Now using node v16.13.0 (64-bit)
PS C:\Windows\system32>
バージョンを確認します。
PS C:\Windows\system32> node --version
v16.13.0
PS C:\Windows\system32>
v16.13.0
PS C:\Windows\system32>
2025/11/22 追記
nodeのバージョンは22.18.0になっていました。
>node --version
v22.18.0
v22.18.0
Copyright (C) 2021 - 2025 ymlib.com
