I finished my PC today and I wanted to install node.js on it. But for some weird reason, it is saying \"Copying files\" and then after a few seconds, it says \"Rolling back\".
Same problem here, but after some research of old same problem, found to install without ETW (Event tracing) or without Performance Counters (during the installation you can select those options under Node.js runtime branch), but I got some new errors when npm install/npm run dev, some with node-sass issues.
EDIT: Ok, so my problem was directly with my antivirus (Avast), I've been reading that with AVG there is the same problem, then you can install it without getting rid of ETW or PC.
I was facing same problems in win 10 system but i was able to install it by doing following steps:
--- Disable ur antivirus it might be blocking node event tracer
--- Disable installation of all components as shown in image below
installation file image
-- complete installation
-- After installation again go to setup and enable components one by one and install , leave out performance counter
-- After all components are installed code to cmd and do node -v u will see it works
A batch script (within //nodejs/node_modules/npm) is no longer supported on Windows 10, version 1803. This file does not properly copy over (this is NOT a hard drive issue but rather an issue with this version of Windows 10!).
File(s) affected:
Copying this file over from the Zip archive IS possible, but requires a reboot to get out of the copy prompt.
I had the same problem (On windows 10 1909). You can work around this by installing Node.js using Chocolatey instead https://chocolatey.org/packages/nodejs.install
Open Powershell elevated and run the following command:
choco install nodejs.install
That worked for me when everything else did not!
Note that
choco
is a Chocolatey command (it is likenpm
). If you don't already have Chocolatey already installed, go to https://chocolatey.org/install and get the install command.