Commands for installing Node.js 8 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.8 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.8 -e --silentwinget uninstall --id OpenJS.NodeJS.8 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i node-v8.11.3-x64.msi /qn /norestartWrite a log
msiexec /i node-v8.11.3-x64.msi /qn /norestart /l*v "%TEMP%\node-js-8-install.log"Uninstall
msiexec /x {D453BC74-B405-4241-9095-808419A77FB3} /qn /norestart- MSI product code
- {D453BC74-B405-4241-9095-808419A77FB3}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D453BC74-B405-4241-9095-808419A77FB3}
- Install folder
- %ProgramFiles%\nodejs
64-bit · ZIP
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i node-v8.11.3-x86.msi /qn /norestartWrite a log
msiexec /i node-v8.11.3-x86.msi /qn /norestart /l*v "%TEMP%\node-js-8-install.log"Uninstall
msiexec /x {B4A49706-61E4-4BAF-BFA8-F97321FF3708} /qn /norestart- MSI product code
- {B4A49706-61E4-4BAF-BFA8-F97321FF3708}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B4A49706-61E4-4BAF-BFA8-F97321FF3708}
- 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-8.ps1
$url = 'https://nodejs.org/dist/v8.11.3/node-v8.11.3-x64.msi'
$sha256 = 'D7E3057E921803159266FF1340283420A3E5053BAD0C3FF951D8946A8F9AA66B'
$file = Join-Path $env:TEMP 'node-v8.11.3-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-8.ps1
$url = 'https://nodejs.org/dist/v8.11.3/node-v8.11.3-x86.msi'
$sha256 = '66D1750F03F9319312843E8E80764625C8157600C1ADD99CBA92C783CF9FF02A'
$file = Join-Path $env:TEMP 'node-v8.11.3-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