Windows 10系统下Node.js无法安装问题求助
Hey there, let's work through this Node.js installation error on Windows 10—this is a really common issue, so we'll get it sorted out for you. The error you're seeing points to problems with either the installer package itself, the Windows Installer service, or system permissions. Here are the step-by-step fixes to try:
1. Verify the Installer Package is Valid & Uncorrupted
Corrupted downloads are the #1 culprit for this error.
- Re-download the Node.js installer from the official release page (make sure you pick the correct version for your system: 32-bit or 64-bit—check this by right-clicking This PC > Properties).
- To confirm the installer isn't corrupted, use the SHA-256 checksum provided on the download page:
- Open Command Prompt and navigate to your download folder with
cd C:\Users\YourUsername\Downloads(replaceYourUsernamewith your actual Windows username) - Run this command (swap
node-vX.X.X-x64.msiwith your actual installer filename):certutil -hashfile node-vX.X.X-x64.msi SHA256 - Compare the output hash to the one listed on the Node.js release page. If they don't match, re-download the installer.
- Open Command Prompt and navigate to your download folder with
2. Repair or Re-register the Windows Installer Service
If the Windows Installer service is broken or unregistered, it can't process the .msi package properly:
- Press
Win + R, typeservices.msc, and hit Enter to open the Services window. - Locate the Windows Installer service:
- If it's stopped, right-click it > Start.
- If it's running, right-click > Stop, wait 10 seconds, then right-click > Start to restart it.
- If the service is disabled, go to Properties, set Startup type to Manual, then click Start.
- For an extra layer of repair, open Command Prompt as Administrator and run these two commands to re-register the service:
msiexec /unregister msiexec /regserver
3. Run the Installer as Administrator
Permission restrictions often block the installer from accessing necessary system files:
- Right-click the Node.js .msi installer file.
- Select Run as administrator from the context menu.
- Follow the installation prompts as usual.
4. Clear Temporary Installer Files
Stale temporary files can interfere with the installation process:
- Press
Win + R, type%temp%, and hit Enter to open your Temp folder. - Select all files (Ctrl + A) and delete them. You can skip any files that show an error saying they're in use.
- Repeat this with the
%localappdata%\Tempfolder to clear more temporary installation files.
5. Use NVM-Windows as an Alternative
If direct .msi installation keeps failing, Node Version Manager (NVM) for Windows is a reliable workaround that avoids Windows Installer issues entirely:
- Download the stable NVM-Windows installer.
- Install NVM-Windows by running the installer as Administrator.
- Open Command Prompt or PowerShell and install the latest Node.js version with:
nvm install latest - Set it as your default version with:
nvm use latest
If you work through these steps in order (start with re-downloading and running as admin—those are the fastest fixes), you should be able to get Node.js installed without issues. If one step doesn't work, move on to the next—most users resolve this with the first three steps.
内容的提问来源于stack exchange,提问作者Adewale Perfect

