Commands for installing Node.js 19 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.19 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.19 -e --silentwinget uninstall --id OpenJS.NodeJS.19 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v19.9.0-x64.msi /qn /norestartWrite a log
msiexec /i node-v19.9.0-x64.msi /qn /norestart /l*v "%TEMP%\node-js-19-install.log"Uninstall
msiexec /x {845FB516-2B15-4644-A0BF-D74E8C2CB6E1} /qn /norestart- MSI product code
- {845FB516-2B15-4644-A0BF-D74E8C2CB6E1}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{845FB516-2B15-4644-A0BF-D74E8C2CB6E1}
64-bit · ZIP
No installation needed (portable)
ARM64 · MSI · All users
Silent install
msiexec /i node-v19.9.0-arm64.msi /qn /norestartWrite a log
msiexec /i node-v19.9.0-arm64.msi /qn /norestart /l*v "%TEMP%\node-js-19-install.log"Uninstall
msiexec /x {C18A0DAA-E3D4-4886-B378-5B2DA8489290} /qn /norestart- MSI product code
- {C18A0DAA-E3D4-4886-B378-5B2DA8489290}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C18A0DAA-E3D4-4886-B378-5B2DA8489290}
ARM64 · ZIP
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i node-v19.9.0-x86.msi /qn /norestartWrite a log
msiexec /i node-v19.9.0-x86.msi /qn /norestart /l*v "%TEMP%\node-js-19-install.log"Uninstall
msiexec /x {20AC7032-E007-4401-AB06-0103A1D0286F} /qn /norestart- MSI product code
- {20AC7032-E007-4401-AB06-0103A1D0286F}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{20AC7032-E007-4401-AB06-0103A1D0286F}
32-bit · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-node-js-19.ps1
$url = 'https://nodejs.org/dist/v19.9.0/node-v19.9.0-x64.msi'
$sha256 = 'A508C50AB0C6F35C40BFE1DD047036DE3A24317B2FBA048E7E79408EA183311C'
$file = Join-Path $env:TEMP 'node-v19.9.0-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-19.ps1
$url = 'https://nodejs.org/dist/v19.9.0/node-v19.9.0-arm64.msi'
$sha256 = 'EE5F875605D96BDC5968799960DF26044DA3EF7D451661CCD702836C2B8CBA51'
$file = Join-Path $env:TEMP 'node-v19.9.0-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 install-node-js-19.ps1
$url = 'https://nodejs.org/dist/v19.9.0/node-v19.9.0-x86.msi'
$sha256 = '3CF665F8EFAE4CC8D697099F850D87F98D860A01DF9BB0402B503351A1DC5EFF'
$file = Join-Path $env:TEMP 'node-v19.9.0-x86.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