# Installation error, wrong npm and node version?

**URL:** <https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405>\
**Category:** General\
**Created:** [3 December 2023 17:52 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405 "2023-12-03T17:52:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![maru](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maru/32/99601_2.png) [@maru](https://discourse.nodered.org/u/maru)\
**Post date:** [3 December 2023 17:52 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/1 "2023-12-03T17:52:21Z")

</div>

Good evening,  
I am trying to install a client node using the ' Manage pallette', and am getting the following error:

```auto
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: eufy-security-client@2.9.1
npm ERR! notsup Not compatible with your version of node/npm: eufy-security-client@2.9.1
npm ERR! notsup Required: {"node":">=18.0.0"}
npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}

```

When I check my log file I see:

```auto
1 info using npm@10.2.3
2 info using node@v18.19.0

```

How can I solve this?

---

<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:** [3 December 2023 18:04 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/2 "2023-12-03T18:04:07Z")

</div>

My guess: you have `n` or `nvm` installed.

uninstall n and/or nvm then see what version of nodejs is actually installed - if \>= 18, try to install the contrib node again. If \< 18, update nodejs

---

<div class="post-metadata">

**Author:** ![maru](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maru/32/99601_2.png) [@maru](https://discourse.nodered.org/u/maru)\
**Post date:** [3 December 2023 18:57 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/3 "2023-12-03T18:57:41Z")

</div>

I had indeed installed nvm and now uninstalled it:

```auto
Maru@RPi4:/ $ npm remove -g npm@latest
up to date in 966ms

```

Maru@RPi4:/ $node -v  
v18.19.0

Unfortunately same error:

```auto
2023-12-03T18:48:27.238Z [err] ERR! notsup Not compatible with your version of node/npm: eufy-security-client@2.9.1
2023-12-03T18:48:27.238Z [err] npm ERR!
2023-12-03T18:48:27.238Z [err] notsup Required: {"node":">=18.0.0"}
2023-12-03T18:48:27.238Z [err] npm ERR!
2023-12-03T18:48:27.240Z [err] notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}

```

---

<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:** [3 December 2023 19:07 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/4 "2023-12-03T19:07:19Z")

</div>

> [@maru](#):
>
> Unfortunately same error

Kinda. But this time if you do `node -v` you will see you really do have v16

The answer is:

> [@Steve-Mcl](#):
>
> If \< 18, update nodejs

Then you can proceed.

---

<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:** [3 December 2023 19:09 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/5 "2023-12-03T19:09:35Z")

</div>

Oh, I see you said it still shows 18 on the command line.

This is why I avoid node version managers.

I think you have remnants of nvm - there are guides for fully removing it

---

<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:** [3 December 2023 19:31 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/6 "2023-12-03T19:31:31Z")

</div>

If you have a folder ~/.nvm then delete it.

---

<div class="post-metadata">

**Author:** ![maru](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maru/32/99601_2.png) [@maru](https://discourse.nodered.org/u/maru)\
**Post date:** [3 December 2023 20:02 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/7 "2023-12-03T20:02:49Z")

</div>

Strange,

```auto
Maru@RPi4:~ $ rm -rf ~/.nvm
Maru@RPi4:~ $ nvm -v
0.39.5

```

No, still the same error

---

<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:** [3 December 2023 20:19 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/8 "2023-12-03T20:19:44Z")

</div>

Full uninstall details: [How to Install and Use NVM (Node Version Manager) | Linode Docs](https://www.linode.com/docs/guides/how-to-install-use-node-version-manager-nvm/#nvm-uninstall-steps)

---

<div class="post-metadata">

**Author:** ![maru](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maru/32/99601_2.png) [@maru](https://discourse.nodered.org/u/maru)\
**Post date:** [4 December 2023 15:39 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/9 "2023-12-04T15:39:46Z")

</div>

That was a long run..... the NVM documentation was very useful, nvm has been completely removed.  
Indeed, there were still remnants of nvm (symlinks and directories) present, which were detected during a upgrade installation of node-red, via [Running on Raspberry Pi](https://nodered.org/docs/getting-started/raspberrypi).  
After removing the symlink and directories and reinstalling node-red I got the message:

```auto
npm v10.2.4 does not support Node.js v16.20.2. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/

```

I ran the script again with the `---node20` parameter and it worked. I have now:  
node v20.10.0  
npm 10.2.3  
and the eufy node 🙂  
Thanks @Steve-Mcl Steve and @Colin Collin for the help.

---

<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:** [18 December 2023 15:40 UTC](https://discourse.nodered.org/t/installation-error-wrong-npm-and-node-version/83405/10 "2023-12-18T15:40:10Z")

</div>

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