# Problems Installing NodeRED

**URL:** <https://discourse.nodered.org/t/problems-installing-nodered/77046>\
**Category:** General\
**Created:** [29 March 2023 09:30 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046 "2023-03-29T09:30:40Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 March 2023 13:07 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/21 "2023-03-30T13:07:51Z")

</div>

> [@ralphwetzel](#):
>
> Has there ever been an initiative to create an installer script

Someone may have done something like that, but nothing that got as far as being contributed back to the project for us to document.

If anyone is interested in help create a `windows-installer` equivalent of [GitHub - node-red/linux-installers: Node-RED install scripts for various flavours of Linux](https://github.com/node-red/linux-installers) then please do let me know.

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [30 March 2023 13:24 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/22 "2023-03-30T13:24:01Z")

</div>

> [@knolleary](#):
>
> please do let me know

I did something like that in the past - before Node-RED stepped into my life! 😉  
Thus I think I could create a prototype based on that experience...

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [30 March 2023 13:47 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/23 "2023-03-30T13:47:06Z")

</div>

> [@Ken-ve3hls](#):
>
> In my experience, 1 click Linux installation would make it the only such thing in existance! I have a severe allergy to Linux and won't be trying it, thanks.

I think you are probably right to avoid Linux. Some people prefer words; some prefer pictures.  
I only mentioned it because like you I was defeated by trying to install Node-red on Windows and to raise the issue of needing a Windows installer.

> [@Ken-ve3hls](#):
>
> The usual response to that is "It's open source. You can do it yourself"

As you can tell from this forum, Node-red is friendlier than that.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 March 2023 14:17 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/24 "2023-03-30T14:17:53Z")

</div>

> [@jbudd](#):
>
> its oddly difficult to install Node-red on Windows

To be pedantic, it is just as easy to install on Windows as it is on Linux. However, it isn't as easy to run it as a SERVICE on Windows as it is on Linux because nobody has ever published a script like Dave's for Debian. Actually installing a Node-RED service by hand on Linux is every bit as hard as for Windows if not more so since you need to work through the oddities of creating the right links in the right folders for systemd.

> [@jbudd](#):
>
> I don't suppose it's any comfort but if you were installing on Linux there is a one line command to install and automatically startup Node-red. (try a Raspberry Pi or an old thin client PC with Linux)  
> A much more friendly and reassuring introduction to the language!

Though "only" of help if you are running a Debian flavour of Linux. Won't work for a Red Hat style for example.

> [@ralphwetzel](#):
>
> Has there ever been an initiative to create an installer script (e.g. with Inno Setup) to make life easier for people trying to run Node-RED on Windows?

I don't believe so.

> [@ralphwetzel](#):
>
> I did something like that in the past - before Node-RED stepped into my life! 😉  
> Thus I think I could create a prototype based on that experience...

That would be amazing!

I've never done it because I generally don't ever run run Node-RED on Windows except as a development environment and in that case, I much prefer to run under PM2 started manually.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [30 March 2023 14:54 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/25 "2023-03-30T14:54:30Z")

</div>

> [@TotallyInformation](#):
>
> To be pedantic, it is just as easy to install on Windows as it is on Linux.

I have to disagree.  
For [Debian] Linux the first pargraph of the documentation gives you a single command which will install node.js, npm and Node-red and set up and enable a systemd service to automatically start NR when the OS boots. The same command will update an installed system too.  
The only predictable snags for a naiive user are that it doesn't tell you how to get to the command line or make it obvious that you have to start node-red once (or reboot) after installing.

Contrariwise, for Windows the documentation _starts_ with

> Download the latest 14.x LTS version of Node.js from the official [Node.js home page](https://nodejs.org/en/).

That is misleading (Node.js 14)? and you have to go to a different site to install the prerequisites.

Next there is a command line to install Node-red. Shorter than the Debian one.  
And then setting up a service so it all starts automatically with the OS and without a command window full of text.  
I would say it's an order of magnitude more difficult on Windows. I suspect that many Windows users find the process antiquated and intimidating so they never get past the installation and discover how approachable Node-red really is.

The install script for Debian based Linuxes is indeed a fine piece of work and Dave has clearly gone to considerable lengths to hide the complexities and to make it work with a broad range of Debian installations.  
There is a Red Hat version too, though a bit more hidden. I've never tried it.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 March 2023 16:25 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/26 "2023-03-30T16:25:20Z")

</div>

> [@jbudd](#):
>
> I have to disagree.  
> For [Debian] Linux the first pargraph of the documentation gives you a single command which will install node.js, npm and Node-red and set up and enable a systemd service to automatically start NR when the OS boots. The same command will update an installed system too.

Ah, sorry, we are slightly adrift there. What I should have said that to install node-red manually was just as easy 🙂

Yes, of course, Dave's wonderful script makes it much easier - on Debian related versions of Linux only. 😁

And by the way, if you include WSL as "Windows", Dave's script can run there as well on the latest versions (now that WSL allows you to turn on support for systemd).

> [@jbudd](#):
>
> The only predictable snags for a naiive user are that it doesn't tell you how to get to the command line or make it obvious that you have to start node-red once (or reboot) after installing.

Which is why I've always encouraged people to think about using an alternative approach that leverages the strengths of "native" `npm`. And of course, I released an npm package to help with that. Which works as well on Windows as it does on any OS supported by node.js.

> [@jbudd](#):
>
> That is misleading (Node.js 14)? and you have to go to a different site to install the prerequisites.

Out of date I think rather than misleading. It should really say:

> Download the latest LTS version of Node.js from the official [Node.js home page](https://nodejs.org/en/).

(e.g. no version number) Which is correct.

> [@jbudd](#):
>
> There is a Red Hat version too

I didn't know that. What about MacOS? That, strictly, is BSD based I think.

* * *

Anyway, we are really down in the weeds and a long way off the original question I think.

It would indeed be great if someone could create a nice script for Windows.

* * *

PS:

Debian:

```auto
sudo apt install nodejs
npm install node-red -g --unsafe-perm --production

```

Windows:

```auto
winget install OpenJS.NodeJS.LTS
npm install node-red -g --unsafe-perm --production

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 May 2023 16:26 UTC](https://discourse.nodered.org/t/problems-installing-nodered/77046/27 "2023-05-29T16:26:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/problems-installing-nodered/77046.md?page=1)
