Node.js install fails on Windows 10 1803

后端 未结 4 1749
天命终不由人
天命终不由人 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 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.

提交回复
热议问题