I tried to install node.js through the Window Installer. But I get the following error:
It's the first time installation on this device. The operating system is Windows 10 Pro. I have tried 14.17.2 LTS and 16.4.1 Current Version with the same result.
Does anyone have any idea what to do in this situation?
To update Node.js on Windows 10, the most common method is simply to run the latest MSI file downloaded from the Node.JS website.
However, there are alternative methods. For example using the Chocolaty installer tool. If you are planning to move to Windows 11 soon, you could also use the new Windows Package Manager (winget) that is now built-in.
You could also use a node version manager such as nvm though personally I generally find that causes as many issues as it solves.