Is there any kind of installation guide for Node Red on Windows 11 that actually works. Installing the Node.js package always stops and fails at the point where it's trying to run a setup.exe file I'm assuming for Visual Studio, once I get to the point of running it I can't install a bunch of nodes because it can't find Visual Studio Tools. The npm install -g --unsafe-perm node-red never installs anything because it's all Deprecated. I've been working on this for two days now and I'm beyond frustrated.
It really is both stupid and brutal that this has to be so difficult to get working. I need this for work but I'm at the point where I don't want to use this at home personally.
Install Steps I follow. Always done after a clean Windows Install.
Update Powershell (I've tried not updating it as well)
Install Visual Studio 2022
Install Node.js
Run npm install -g --unsafe-perm node-red
I've also tried npm install --global --production windows-build-tools plus hundreds of searches with suggestions that just don't work.
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.
Not sure about stupid and brutal but I completely agree that installing Node-red is not simple on Windows. Yet people do run it on a PC.
An alternative approach might be to buy a Raspberry Pi Zero 2 and 32gB micro SD card (total maybe £20).
Access the OS command line by ssh.
Put RaspiOS Lite on it, install node, npm and Node-red all in one using the official script.
Use a browser on your PC to run NR editor and dashboard.
One more thing, I have a working install on my personal laptop however I can't get it to work on my work laptop. This is a small business and it is not a work managed PC.
I've seen reference to running Lubuntu on a PC for Node-Red. What would you recommend as an OS for this?
I would not personally run Linux on a laptop solely so it can easily run Node-red
I'm sure it works fine but my Node-red server has to run 24 hours a day and Pi is the perfect device for that.
We don't know the cause of your arduino difficulty.
If trying to switch to PCs is because you believe Raspberry Pies are unsuitable, you are probably barking up the wrong tree.
If I want to use the Projects feature, I edit the settings.js and install Git : winget install --id Git.Git -e --source winget
... then restart Node-RED.
You need it for any npm install that requires a C/C++ library compile. Things like SQLite, serial port, .... - it is possible that you already have the required apps if you've used that PC for Visual Studio development.
Install Visual Studio 2022 and select the Node.js and Desktop Development with C++ Modules.
Reboot
Follow RvG's installation instructions.
Install Python 3.13.1
I'm now able to install Nodes that require the VS Build Tools.
Not sure if the Node.js module is required but I installed it anyway. I'm now able to connect to my Arduino loaded with Firmata by creating a Com Port in Node Red.