Windows 10 1803系统下Node.js安装失败求助
Hey Niklas, sorry to hear you're stuck with this frustrating rollback issue right after setting up your new PC. Let's walk through actionable fixes that often resolve this "Copying files → Rolling back" problem:
Common Troubleshooting Steps
Verify your installation package integrity
Corrupted installers are a frequent culprit here. Re-download the Node.js MSI file that matches your system architecture (32/64-bit) from the official archive. To confirm it's not damaged, run this command in Command Prompt (replace the file path with your installer's location):certutil -hashfile node-vxx.xx.x-x64.msi SHA256
Compare the output hash with the one listed on the Node.js download page for that version. If they don't match, re-download the file.Run the installer with admin privileges
Right-click the Node.js MSI file and select "Run as administrator". Missing write permissions to system directories (likeC:\Program Files\nodejs) often trigger rollbacks, and admin access usually fixes this permission gap.Disable conflicting background software
Antivirus programs, firewalls, or even file managers that lock system folders can interfere with the file-copying process. Temporarily disable your antivirus/real-time protection, close unnecessary background apps, then try installing again. Don't forget to re-enable security tools afterward!Clean up residual files and registry entries
Failed installs can leave behind corrupted files or registry keys that block future attempts:- Open the Temp folder by typing
%TEMP%in the Windows search bar and hitting Enter. Delete any folders or files related to Node.js. - Open the Registry Editor by running
regedit(back up your registry first via File → Export for safety). Navigate to these paths and delete them if they exist:HKEY_LOCAL_MACHINE\SOFTWARE\Node.jsHKEY_CURRENT_USER\SOFTWARE\Node.js
- Open the Temp folder by typing
Try the portable ZIP version
If the MSI installer keeps failing, opt for the portable ZIP release of Node.js. Extract it to a folder likeC:\Node.js, then add this folder path to your system'sPathenvironment variable. This skips the MSI installation process entirely and gets Node.js up and running quickly.Check for Windows updates
Even on Windows 10 1803, missing cumulative updates can cause compatibility issues with installers. Open Settings → Update & Security → Windows Update and install any pending updates. Restart your PC afterward and retry the Node.js installation.
Dig Deeper with Installation Logs
If none of the above work, check the installation log for specific error details. After a failed rollback, look for a log file named something like node-vxx.xx.x-x64.msi.log in your %TEMP% folder. This file will show exactly which step failed (e.g., a specific file that couldn't be copied) and help pinpoint the root cause.
内容的提问来源于stack exchange,提问作者Niklas Haiden

