# Windows 11 + Node.js v20.15.1 (LTS) + Latest Node-Red Installation \> Installation Failure

**URL:** <https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588>\
**Category:** General\
**Created:** [18 July 2024 05:24 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588 "2024-07-18T05:24:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![btssn988](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@btssn988](https://discourse.nodered.org/u/btssn988)\
**Post date:** [18 July 2024 05:24 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/1 "2024-07-18T05:24:22Z")

</div>

Hi,

On Windows 11 Home (23H2 build 22631.3880), I have repeatedly tried to uninstall Node.js using the Windows Add/Remove Programs feature. I then downloaded and reinstalled Node.js v20.15.1 (LTS) x64. Additionally, I cleared the npm cache using the command `npm cache clean --force`.

Each time I attempted to install Node-Red using the standard command (`npm install -g --unsafe-perm node-red`), the installation was endless, continuously displaying the /-\ symbol animation.

After fully uninstalling Node.js v20.15.1 (LTS) x64 and installing Node.js v18.20.4 (LTS) x64, I successfully installed and launched Node-Red without any errors.

It seems there is an issue on Windows 11 with Node.js v20.15.1 (LTS) x64 and the latest Node-Red installation. Am I the only one experiencing this?

Regards, David R.

---

<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:** [18 July 2024 12:16 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/2 "2024-07-18T12:16:08Z")

</div>

I've not installed things in that way but I have upgraded a node-red 4 install to Node.js 20. I assume that you included the windows build tools in your node.js install?

Maybe try a local rather than global install to double-check that it isn't a weird permissions issue.

To install locally, you could use my alternate installer or simply:

```auto
mkdir nrtest
cd nrtest
npm init -y
npm install node-red --production --unsafe-perm

```

---

<div class="post-metadata">

**Author:** ![btssn988](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@btssn988](https://discourse.nodered.org/u/btssn988)\
**Post date:** [18 July 2024 23:59 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/3 "2024-07-18T23:59:37Z")

</div>

Hi, and thanks for your reply, TotallyInformation.

Just like you, I've successfully upgraded from Node.js v18.20.4 (LTS) x64 to Node.js v20.15.1 (LTS) x64 using the standard Windows MSI file without any extra options. Node-Red was still functional with Node.js v20.15.1 (LTS) x64.

However, with Node.js 20, when I attempted to use the standard command (`npm install -g --unsafe-perm node-red`), the installation was endless, continuously displaying the /-\ symbol animation, just like before.

I then re-installed Node.js v20.15.1 (LTS) x64 and checked the option "Automatically install the necessary tools" (this was not mandatory for Node-Red with Node.js 18).

With all the options available on Node.js 20, I retried with the command `npm install -g --unsafe-perm --verbose node-red`. This command still did not complete:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/a/aa516949408b76b6ec74361b3f88730aa6139477.png)

I don't think it is a permission issue because my account has admin privileges, and the installation process works fine with Node.js 18.

I've had exactly the same issue with the local install of Node-Red :

```auto
mkdir nrtest
cd nrtest
npm init -y
npm install node-red --production --unsafe-perm

```

---

<div class="post-metadata">

**Author:** ![btssn988](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@btssn988](https://discourse.nodered.org/u/btssn988)\
**Post date:** [19 July 2024 00:39 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/4 "2024-07-19T00:39:10Z")

</div>

After npm cache clearing ( `npm cache clean --force`), `npm install -g --unsafe-perm --verbose node-red` fails just after this line:

> npm http fetch GET 200 [https://registry.npmjs.org/@node-rs/bcrypt/-/bcrypt-1.10.4.tgz](https://registry.npmjs.org/@node-rs/bcrypt/-/bcrypt-1.10.4.tgz) 2652ms (cache miss)

(same issue with Node.js v22.5.0)

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [19 July 2024 00:42 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/5 "2024-07-19T00:42:43Z")

</div>

According to [this page](https://www.npmjs.com/package/@node-rs/bcrypt) that package isn't ready for node.js above 18.

Is it needed?

---

<div class="post-metadata">

**Author:** ![btssn988](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@btssn988](https://discourse.nodered.org/u/btssn988)\
**Post date:** [19 July 2024 00:50 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/6 "2024-07-19T00:50:18Z")

</div>

`npm install -g --unsafe-perm --verbose node-red`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70707206f4f3f5ad70b0de4f40b9e5c922853404.png)  
With node.js v18.20.4 no issue.

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [19 July 2024 01:02 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/7 "2024-07-19T01:02:34Z")

</div>

I'm on:  
Node-RED version: v4.0.2  
Node.js version: v20.7.0  
Windows 10

My install works but I have no trace of that package

my `package.json` only lists "bcryptjs" and "bcrypt"

---

<div class="post-metadata">

**Author:** ![btssn988](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@btssn988](https://discourse.nodered.org/u/btssn988)\
**Post date:** [19 July 2024 01:48 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/8 "2024-07-19T01:48:04Z")

</div>

I just removed a node.js node `https://www.npmjs.com/package/suncalc` and restarted node-red installation with Node.js v20.15.1 (LTS) x64 \> no issue. Thanks

---

<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:** [21 July 2024 12:05 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/9 "2024-07-21T12:05:02Z")

</div>

Sorry, been away for a couple of days.

If you already have some installed packages, you MUST run an `npm rebuild` after changing node.js major versions. Alternatively, delete `~/.node-red/node_modules` and then reinstall everything.

---

<div class="post-metadata">

**Author:** ![btssn988](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@btssn988](https://discourse.nodered.org/u/btssn988)\
**Post date:** [23 July 2024 23:35 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/10 "2024-07-23T23:35:18Z")

</div>

Ok, thanks for the reply!

---

<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:** [6 August 2024 23:35 UTC](https://discourse.nodered.org/t/windows-11-node-js-v20-15-1-lts-latest-node-red-installation-installation-failure/89588/11 "2024-08-06T23:35:35Z")

</div>

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