# Cant install node-red-contrib-onvif

**URL:** <https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493>\
**Category:** General\
**Created:** [23 October 2025 14:42 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493 "2025-10-23T14:42:05Z")\
**Posts on this page:** 18\
**Page:** 2

<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:** [24 October 2025 08:31 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/21 "2025-10-24T08:31:56Z")

</div>

I wonder whether your node-gyp cache is corrupted. Delete the folder `/home/pi/.cache/node-gyp` and run `npm install` again (from the .node-red folder as before).

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 12:37 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/22 "2025-10-24T12:37:45Z")

</div>

> [@Colin](#):
>
> npm install

did that and got

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/99b9a4c6e0faf00ecf3d310b9bf840a883232807.jpeg)

---

<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:** [24 October 2025 13:41 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/23 "2025-10-24T13:41:36Z")

</div>

That does not make sense, last time you said that after removing the node\_modules folder:

> [@montyfert](#):
>
> hi after npm install i got lots of errors

But now it says that it was all up to date., which suggests there were no errors last time.

Can you do that again please, remove the node\_modules folder and run  
`npm install`  
and make sure there are no errors shown in the command window

If that is ok then try  
`npm install node-red-contrib-onvif`  
and see if that gives errors in the command window.

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 13:55 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/24 "2025-10-24T13:55:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 13:57 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/25 "2025-10-24T13:57:31Z")

</div>

how do i completely remove node red and reinstall ?

---

<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:** [24 October 2025 14:05 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/26 "2025-10-24T14:05:23Z")

</div>

What command is that from?

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 14:07 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/27 "2025-10-24T14:07:36Z")

</div>

npm install

---

<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:** [24 October 2025 14:10 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/28 "2025-10-24T14:10:34Z")

</div>

> [@montyfert](#):
>
> how do i completely remove node red and reinstall

That depends on how you installed it.

What do these commands show

```auto
which node-red
apt policy node-red
which node
apt policy nodejs
which npm
apt policy npm

```

```auto

```

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 14:12 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/29 "2025-10-24T14:12:53Z")

</div>

pi@raspberrypi:~ $ which node-red  
/usr/bin/node-red  
pi@raspberrypi:~ $ apt policy node-red  
N: Unable to locate package node-red  
pi@raspberrypi:~ $ which node  
/usr/bin/node  
pi@raspberrypi:~ $ apt policy nodejs  
nodejs:  
Installed: 20.19.1-1nodesource1  
Candidate: 20.19.1-1nodesource1  
Version table:  
\*\*\* 20.19.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
100 /var/lib/dpkg/status  
20.19.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.18.3-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.18.2-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.18.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.18.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.17.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.16.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.15.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.15.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.14.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.13.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.13.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.12.2-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.12.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.12.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.11.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.11.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.10.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.9.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.8.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.8.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.7.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.6.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.6.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.5.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.5.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.4.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.3.1-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.3.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.2.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.1.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
20.0.0-1nodesource1 500  
500 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro/main armhf Packages  
12.22.12~dfsg-1~deb11u7 500  
500 [Index of /raspbian](http://raspbian.raspberrypi.org/raspbian) bullseye/main armhf Packages  
pi@raspberrypi:~ $ which npm  
/usr/bin/npm  
pi@raspberrypi:~ $ apt policy npm  
npm:  
Installed: (none)  
Candidate: 7.5.2+ds-2  
Version table:  
7.5.2+ds-2 500  
500 [Index of /raspbian](http://raspbian.raspberrypi.org/raspbian) bullseye/main armhf Packages

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 14:15 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/30 "2025-10-24T14:15:20Z")

</div>

> [@Colin](#):
>
> That depends on how you installed it.

```auto
bash <(curl -sL https://github.com/node-red/linux-installers/releases/latest/download/update-nodejs-and-nodered-deb)

```

---

<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:** [24 October 2025 14:24 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/31 "2025-10-24T14:24:22Z")

</div>

That all looks exactly as it should.

To remove nodejs and node-red  
`sudo apt remove nodejs`  
Remove or at least rename the .node-red folder. If you want to be able to recover your flows file then rename it for the moment.  
Rerun the `bash <(curl...` script to remove node-red and re-install it and nodejs.

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 14:31 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/33 "2025-10-24T14:31:50Z")

</div>

> [@Colin](#):
>
> To remove nodejs and node-red  
> `sudo apt remove nodejs`  
> Remove or at least rename the .node-red folder. If you want to be able to recover your flows file then rename it for the moment.  
> Rerun the `bash <(curl...` script to remove node-red and re-install it and nodejs.

just done this and am running the bash script  
thanks  
martin

---

<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:** [24 October 2025 14:38 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/34 "2025-10-24T14:38:02Z")

</div>

Make sure there are no errors from the script.

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 15:05 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/35 "2025-10-24T15:05:22Z")

</div>

I removed it and installed it with the script with no errors at all ,  
imported my saved flows etc.  
tried installing onvif it failed again, so giving up with onvif lol not worth my sanity .  
installed persist for a graph I have but when i deployed persist server lost connection and node red would not start so had to go to node modules and delete persist folder to be able to get node red to start.  
just my luck lol  
martin

---

<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:** [24 October 2025 15:15 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/36 "2025-10-24T15:15:50Z")

</div>

> [@montyfert](#):
>
> tried installing onvif it failed again

Odd, it installs for me on a very similar system. I suspect there is something wrong with your system which will bite you at some point. Does the serial node install ok? node-red-node-serialport? If not then there is something wrong with your build tools, but I have no idea what.

You might like to try this onvif package, which works well for me and is used by others here [GitHub - bartbutenaers/node-red-contrib-onvif-nodes: Node Red nodes for communicating with OnVif compliant IP devices](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes)  
It hasn't been published to npm so you have to install from the command line (in your .node-red folder), using the command in the link I posted.

> [@montyfert](#):
>
> but when i deployed persist server lost connection and node red would not start so had to go to node modules and delete persist folder to be able to get node red to start.

That is not a good way to recover. npm will probably re-install it for you when you don't expect it. You can start node-red in safe mode, which starts the editor but not the flows, by stopping node red then running  
`node-red --safe`  
Remove the node using the palette manager and then deploy and it will start the flows.

Alternatively remove it from the command line using  
`npm remove whatever_the_node_is_called`  
then restart node-red.

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 15:22 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/37 "2025-10-24T15:22:50Z")

</div>

thanks for the help  
martin

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [24 October 2025 21:51 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/38 "2025-10-24T21:51:57Z")

</div>

> [@Colin](#):
>
> You might like to try this onvif package, which works well for me and is used by others here [GitHub - bartbutenaers/node-red-contrib-onvif-nodes: Node Red nodes for communicating with OnVif compliant IP devices](https://github.com/bartbutenaers/node-red-contrib-onvif-nodes)  
> It hasn't been published to npm so you have to install from the command line (in your .node-red folder), using the command in the link I posted.

that worked first time thanks,

> [@Colin](#):
>
> Does the serial node install ok? node-red-node-serialport? If not then there is something wrong with your build tools, but I have no idea what.

i already have the node-red-node-serialport installed ,

> [@Colin](#):
>
> node-red --safe

who says you cant teach an old dog new tricks ,  
thanks for all the help and your time its appreciated  
martin

---

<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:** [7 November 2025 21:52 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493/39 "2025-11-07T21:52:40Z")

</div>

Closed on 7 November 2025 21:52 UTC

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

[Previous page](https://discourse.nodered.org/t/cant-install-node-red-contrib-onvif/99493.md?page=1)
