Node.js install fails on Windows 10 1803

后端 未结 4 1747
天命终不由人
天命终不由人 2021-01-29 05:22

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\".

相关标签:
4条回答
  • 2021-01-29 05:51

    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.

    0 讨论(0)
  • 2021-01-29 05:52

    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

    0 讨论(0)
  • 2021-01-29 05:58

    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:

    • \nodejs\node_modules\npm\make.bat (This file alone requires a reboot.)

    Copying this file over from the Zip archive IS possible, but requires a reboot to get out of the copy prompt.

    0 讨论(0)
  • 2021-01-29 06:11

    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 like npm). If you don't already have Chocolatey already installed, go to https://chocolatey.org/install and get the install command.

    0 讨论(0)
提交回复
热议问题