# Npm warn to unsupported /not compatible version during installation

**URL:** <https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410>\
**Category:** General\
**Created:** [19 December 2022 09:00 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410 "2022-12-19T09:00:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![irenebear](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/irenebear/32/72840_2.png) [@irenebear](https://discourse.nodered.org/u/irenebear)\
**Post date:** [19 December 2022 09:00 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/1 "2022-12-19T09:00:39Z")

</div>

Dear Sir, who may concern,  
I am trying to install node-red on my Ubuntu 22 after nodejs of latest version is installed, but encounter below warn:

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

How to fix it?  
THX!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 December 2022 09:09 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/2 "2022-12-19T09:09:57Z")

</div>

> [@irenebear](#):
>
> How to fix it?

upgrade nodejs to v14 or greater.

Better still, use the official installer with ` --node16` on the end.

[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

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

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 December 2022 09:12 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/3 "2022-12-19T09:12:42Z")

</div>

also if you have [`n`](https://www.npmjs.com/package/n) or `nvm` installed, remove them.

---

<div class="post-metadata">

**Author:** ![irenebear](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/irenebear/32/72840_2.png) [@irenebear](https://discourse.nodered.org/u/irenebear)\
**Post date:** [19 December 2022 09:12 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/4 "2022-12-19T09:12:58Z")

</div>

> [@Steve-Mcl](#):
>
> upgrade nodejs to v14 or greater.

Thanks for your reply, but it can be seen in my picture that the nodejs version is already V19.3.0.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 December 2022 09:14 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/5 "2022-12-19T09:14:29Z")

</div>

Yes, I see that however npm has reported itself and node as v10 & v6 suggesting you are using `n` or `nvm`

> [@Steve-Mcl](#):
>
> if you have [`n`](https://www.npmjs.com/package/n) or `nvm` installed, remove them

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 December 2022 09:17 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/6 "2022-12-19T09:17:14Z")

</div>

> [@irenebear](#):
>
> V19.3.0

Dont use odd numbered versions of node (they are not LTS releases and are not supported)

I currently recommend version 16LTS of nodejs

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 December 2022 09:23 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/7 "2022-12-19T09:23:39Z")

</div>

> [@irenebear](#):
>
> it can be seen in my picture that the nodejs version is already V19.3.0.

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

That says it is v10.19.0  
Somehow you have multiple versions installed. You need to sort that out.

---

<div class="post-metadata">

**Author:** ![irenebear](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/irenebear/32/72840_2.png) [@irenebear](https://discourse.nodered.org/u/irenebear)\
**Post date:** [22 December 2022 01:31 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/8 "2022-12-22T01:31:06Z")

</div>

Thx!~ I just re-install node-js by git and make install, so far so good

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 December 2022 07:09 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/9 "2022-12-22T07:09:28Z")

</div>

That really isn't the best way to install nodejs.

---

<div class="post-metadata">

**Author:** ![irenebear](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/irenebear/32/72840_2.png) [@irenebear](https://discourse.nodered.org/u/irenebear)\
**Post date:** [22 December 2022 07:35 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/10 "2022-12-22T07:35:30Z")

</div>

True, but version from apt is too low, and npm cause warning to node-red installation

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 December 2022 08:26 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/11 "2022-12-22T08:26:15Z")

</div>

That is why @Steve-Mcl suggested that you use the official node red installer which can upgrade nodejs at the same time.

Did you work out how you had two versions of nodejs installed at the same time?

---

<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:** [20 February 2023 08:26 UTC](https://discourse.nodered.org/t/npm-warn-to-unsupported-not-compatible-version-during-installation/72410/12 "2023-02-20T08:26:55Z")

</div>

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