Commands for installing Node.js without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id OpenJS.NodeJS -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS -e --silentwinget uninstall --id OpenJS.NodeJS -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v26.12.1-x64.msi /qn /norestartWrite a log
msiexec /i node-v26.12.1-x64.msi /qn /norestart /l*v "%TEMP%\node-js-install.log"Uninstall
msiexec /x {FBEF4017-499E-43E9-9CB3-09C84C5B3B75} /qn /norestart- MSI product code
- {FBEF4017-499E-43E9-9CB3-09C84C5B3B75}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FBEF4017-499E-43E9-9CB3-09C84C5B3B75}
ARM64 · MSI · All users
Silent install
msiexec /i node-v26.12.1-arm64.msi /qn /norestartWrite a log
msiexec /i node-v26.12.1-arm64.msi /qn /norestart /l*v "%TEMP%\node-js-install.log"Uninstall
msiexec /x {5E2FF966-8E7B-471D-B9C0-30043D39350A} /qn /norestart- MSI product code
- {5E2FF966-8E7B-471D-B9C0-30043D39350A}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5E2FF966-8E7B-471D-B9C0-30043D39350A}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-node-js.ps1
$url = 'https://nodejs.org/dist/v26.12.1/node-v26.12.1-x64.msi'
$sha256 = 'F32A2844504ED8D73449DDB480385F69CB436BC9409A89E2049AE83447078457'
$file = Join-Path $env:TEMP 'node-v26.12.1-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-node-js.ps1
$url = 'https://nodejs.org/dist/v26.12.1/node-v26.12.1-arm64.msi'
$sha256 = '2BE19B26651210B2541B6872F85D43F31422B9E624D82AAAD8BAA77EAD294D88'
$file = Join-Path $env:TEMP 'node-v26.12.1-arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait