You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows 10系统下Node.js无法安装问题求助

Fixing "Windows Installer Package Could Not Be Opened" Error When Installing Node.js on Windows 10

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:
    1. Open Command Prompt and navigate to your download folder with cd C:\Users\YourUsername\Downloads (replace YourUsername with your actual Windows username)
    2. Run this command (swap node-vX.X.X-x64.msi with your actual installer filename):
      certutil -hashfile node-vX.X.X-x64.msi SHA256
      
    3. Compare the output hash to the one listed on the Node.js release page. If they don't match, re-download the installer.

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, type services.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%\Temp folder 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 05:03:14