Commands for installing Node.js 20 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.20 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.20 -e --silentwinget uninstall --id OpenJS.NodeJS.20 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v20.20.2-x64.msi /qn /norestartWrite a log
msiexec /i node-v20.20.2-x64.msi /qn /norestart /l*v "%TEMP%\node-js-20-install.log"Uninstall
msiexec /x {EC1CD587-CC41-4B29-9D2C-CD8067FA1341} /qn /norestart- MSI product code
- {EC1CD587-CC41-4B29-9D2C-CD8067FA1341}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EC1CD587-CC41-4B29-9D2C-CD8067FA1341}
- Install folder
- %ProgramFiles%\nodejs
64-bit · ZIP
No installation needed (portable)
ARM64 · MSI · All users
Silent install
msiexec /i node-v20.20.2-arm64.msi /qn /norestartWrite a log
msiexec /i node-v20.20.2-arm64.msi /qn /norestart /l*v "%TEMP%\node-js-20-install.log"Uninstall
msiexec /x {D456A9FC-ABDC-45C7-9368-4BFD17421934} /qn /norestart- MSI product code
- {D456A9FC-ABDC-45C7-9368-4BFD17421934}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D456A9FC-ABDC-45C7-9368-4BFD17421934}
- Install folder
- %ProgramFiles%\nodejs
ARM64 · ZIP
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i node-v20.20.2-x86.msi /qn /norestartWrite a log
msiexec /i node-v20.20.2-x86.msi /qn /norestart /l*v "%TEMP%\node-js-20-install.log"Uninstall
msiexec /x {E7A72A47-94B4-43D4-A339-ADABE373DAA0} /qn /norestart- MSI product code
- {E7A72A47-94B4-43D4-A339-ADABE373DAA0}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E7A72A47-94B4-43D4-A339-ADABE373DAA0}
- Install folder
- %ProgramFiles(x86)%\nodejs
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-20.ps1
$url = 'https://nodejs.org/dist/v20.20.2/node-v20.20.2-x64.msi'
$sha256 = '9A283DCDB771793D6492235E81F3FC80048DB8A37497A0AF87B0A9F450D10FA6'
$file = Join-Path $env:TEMP 'node-v20.20.2-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-20.ps1
$url = 'https://nodejs.org/dist/v20.20.2/node-v20.20.2-arm64.msi'
$sha256 = '1473F48D689627EC35EB4147D0F22EE60C694F16719C20A7C129B925C60F3A2F'
$file = Join-Path $env:TEMP 'node-v20.20.2-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-20.ps1
$url = 'https://nodejs.org/dist/v20.20.2/node-v20.20.2-x86.msi'
$sha256 = '5BD11635C4D46A14E5F712FFBDDF07A8DC01D6E62C5AC1D20CAB47B4FD7F5CE0'
$file = Join-Path $env:TEMP 'node-v20.20.2-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