Commands for installing Node.js 23 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.23 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.23 -e --silentwinget uninstall --id OpenJS.NodeJS.23 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v23.11.0-x64.msi /qn /norestartWrite a log
msiexec /i node-v23.11.0-x64.msi /qn /norestart /l*v "%TEMP%\node-js-23-install.log"Uninstall
msiexec /x {6403CDE6-B8BE-41A9-9887-8D369B2086E5} /qn /norestart- MSI product code
- {6403CDE6-B8BE-41A9-9887-8D369B2086E5}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6403CDE6-B8BE-41A9-9887-8D369B2086E5}
64-bit · ZIP
No installation needed (portable)
ARM64 · MSI · All users
Silent install
msiexec /i node-v23.11.0-arm64.msi /qn /norestartWrite a log
msiexec /i node-v23.11.0-arm64.msi /qn /norestart /l*v "%TEMP%\node-js-23-install.log"Uninstall
msiexec /x {D9846AE9-884D-491A-BE2B-9E1D9A0AEABD} /qn /norestart- MSI product code
- {D9846AE9-884D-491A-BE2B-9E1D9A0AEABD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D9846AE9-884D-491A-BE2B-9E1D9A0AEABD}
ARM64 · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-node-js-23.ps1
$url = 'https://nodejs.org/dist/v23.11.0/node-v23.11.0-x64.msi'
$sha256 = '4D345BE9222FFCC052921865A6AC498AC4D93C833AC5C37B84784BD6738C7DCA'
$file = Join-Path $env:TEMP 'node-v23.11.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-23.ps1
$url = 'https://nodejs.org/dist/v23.11.0/node-v23.11.0-arm64.msi'
$sha256 = '33AC1B7AD8C619187C6436FBD4FF9766598B0C50D48FBC9A1A96EEA9A214A59A'
$file = Join-Path $env:TEMP 'node-v23.11.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