- Use CMD instead of powershell
- When you install node.js, make sure you tick the box that states install the necessary tools for compiling (windows-build-tools is the old depreciated way)
- You don't need to install Install Visual Studio 2022 (if you followed previous step)
- I'd personally go with node v20 LTS (don't use odd numbered versions of node js)
- Make sure you install the latest version of node-red (v4.0.8). There may be one or two depreciated warnings, but that does not mean it did not work. It just means since the version was released, some dependencies are no longer being maintained. As time goes by and new versions of node-red are released, we will address them as we can.
Point of note: this is a lot smoother on Linux (especially Debian/ Ubuntu variants). Windows is just a pain but professionally, I have installed and used node-red many times on Windows. The real problem comes when you need to run it as a service and understanding node/npm global installations are not really global to the system but in fact global to the user and you need to reinstall everything again as the final service account.