Node.js Silent Install (How-To Guide)


Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Node.js from the command line using the MSI installer.

How to Install Node.js Silently

Node.js 32-bit Silent Install (MSI)

  1. Navigate to: https://nodejs.org/dist/
  2. Select the version of your choice
  3. Select the node-vXX.X.X-x86.msi
  4. Download the MSI to a folder created at (C:\Downloads)
  5. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  6. Navigate to the C:\Downloads folder
  7. Enter the following command: MsiExec.exe /i node-vXX.X.X-x86.msi /qn
  8. Press Enter

After a few moments you should see the Node.js shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Node.js (32-bit)
Vendor:Node.js Foundation
Architecture:x86
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i node-vXX.X.X-x86.msi /qn
Silent Uninstall Switch:MsiExec.exe /x node-vXX.X.X-x86.msi /qn
Repair Command:MsiExec.exe /fa node-vXX.X.X-x86.msi /qn
Download Link:https://nodejs.org/dist/
PowerShell Script:https://silentinstallhq.com/node-js-install-and-uninstall-powershell/

Node.js 64-bit Silent Install (MSI)

  1. Navigate to: https://nodejs.org/dist/
  2. Select the version of your choice
  3. Select the node-vXX.X.X-x64.msi
  4. Download the MSI to a folder created at (C:\Downloads)
  5. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  6. Navigate to the C:\Downloads folder
  7. Enter the following command: MsiExec.exe /i node-vXX.X.X-x64.msi /qn
  8. Press Enter

After a few moments you should see the Node.js shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Node.js (64-bit)
Vendor:Node.js Foundation
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i node-vXX.X.X-x64.msi /qn
Silent Uninstall Switch:MsiExec.exe /x node-vXX.X.X-x64.msi /qn
Repair Command:MsiExec.exe /fa node-vXX.X.X-x64.msi /qn
Download Link:https://nodejs.org/dist/
PowerShell Script:https://silentinstallhq.com/node-js-install-and-uninstall-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download link provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create an Installation Log File

The MSI installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

Node.js 32-bit Silent Install with Logging

MsiExec.exe /i node-vXX.X.X-x86.msi /qn /L*v "%WINDIR%\Temp\Node.js-Install.log"

Node.js 64-bit Silent Install with Logging

MsiExec.exe /i node-vXX.X.X-x64.msi /qn /L*v "%WINDIR%\Temp\Node.js-Install.log"

Change Default Installation Directory

You can also change the default installation directory by using the following command line parameters. In this example, I’m installing Node.js to “C:\Node.js”

Node.js 32-bit (MSI)

MsiExec.exe /i node-vXX.X.X-x86.msi INSTALLDIR=C:\Node.js /qn

Node.js 64-bit (MSI)

MsiExec.exe /i node-vXX.X.X-x64.msi INSTALLDIR=C:\Node.js /qn

How to Uninstall Node.js Silently

Check out the Node.js Install and Uninstall (PowerShell) post for a scripted solution.

  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

Node.js 32-bit Silent Uninstall (MSI)

MsiExec.exe /x node-vXX.X.X-x86.msi /qn

Node.js 64-bit Silent Uninstall (MSI)

MsiExec.exe /x node-vXX.X.X-x64.msi /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Recent Posts