# ERESOLVE error when trying to remove a contrib node

**URL:** <https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074>\
**Category:** General\
**Created:** [23 January 2023 10:25 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074 "2023-01-23T10:25:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 10:25 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/1 "2023-01-23T10:25:01Z")

</div>

Whenever I try to update or remove a contrib node I get a ERESOLVE error that relates to the node...  
node-red-contrib-ui-mp4frag.  
I was unable to remove this node, using Manage palette or npm on the command-line, so I delete the directory. I tried doing a 'npm rebuild' but still get this issue.  
Has anyone any suggestions on how to rectify this situation?

2023-01-23T10:08:59.188Z Remove : node-red-contrib-buffer-parser

2023-01-23T10:08:59.368Z npm remove --no-audit --no-update-notifier --no-fund --save node-red-contrib-buffer-parser  
2023-01-23T10:09:06.504Z [err] npm  
2023-01-23T10:09:06.505Z [err] ERR! code ERESOLVE  
2023-01-23T10:09:06.513Z [err] npm  
2023-01-23T10:09:06.514Z [err] ERR! ERESOLVE could not resolve  
2023-01-23T10:09:06.514Z [err] npm  
2023-01-23T10:09:06.514Z [err] ERR!  
2023-01-23T10:09:06.515Z [err] npm  
2023-01-23T10:09:06.515Z [err] ERR! While resolving: node-red-contrib-ui-mp4frag@0.1.0  
2023-01-23T10:09:06.515Z [err] npm  
2023-01-23T10:09:06.515Z [err] ERR!  
2023-01-23T10:09:06.516Z [err] Found: node-red-dashboard@3.2.0  
2023-01-23T10:09:06.516Z [err] npm ERR! node\_modules/node-red-dashboard  
2023-01-23T10:09:06.516Z [err] npm ERR! peer node-red-dashboard@"\>=2.23.3" from node-red-contrib-ui-led@0.4.11  
2023-01-23T10:09:06.516Z [err] npm ERR! node\_modules/node-red-contrib-ui-led  
2023-01-23T10:09:06.516Z [err] npm ERR! node-red-contrib-ui-led@"~0.4.11" from the root project  
2023-01-23T10:09:06.516Z [err] npm ERR! peer node-red-dashboard@"\>2.15.0" from node-red-node-ui-iframe@0.2.1  
2023-01-23T10:09:06.516Z [err] npm ERR! node\_modules/node-red-node-ui-iframe  
2023-01-23T10:09:06.516Z [err] npm ERR! node-red-node-ui-iframe@"~0.2.1" from the root project  
2023-01-23T10:09:06.516Z [err] npm ERR! 3 more (node-red-node-ui-list, node-red-node-ui-table, the root project)  
2023-01-23T10:09:06.516Z [err] npm ERR!

---

<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:** [23 January 2023 10:28 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/2 "2023-01-23T10:28:25Z")

</div>

Hi Dave,

Easiest way is to stop Node-RED, manually remove using a command line on the server:

```auto
cd ~/.node-red
npm remove node-red-contrib-ui-mp4frag

```

Then restart Node-RED. But also make sure that any nodes have been removed - including config nodes before doing this.

* * *

Hmm, though you are also getting Dashboard errors. If the above doesn't cure it. Try an `npm rebuild` or, if needing to go nuclear, simply delete the `node_modules` folder completely and then run `npm install`.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 10:32 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/3 "2023-01-23T10:32:50Z")

</div>

> [@TotallyInformation](#):
>
> Try an `npm rebuild` or, if needing to go nuclear, simply delete the `node_modules` folder completely and then run `npm install`.

I've tried all those suggestions EXCEPT the nuclear one which I'm going to try now.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 10:40 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/4 "2023-01-23T10:40:23Z")

</div>

OK - so I deleted 'node\_modules' then ran 'npm install' and immediately got the message below.  
Note: The 'node\_modules' folder has not been created.

pi@iot-super-server:~/.node-red $ npm install  
npm ERR! code ERESOLVE  
npm ERR! ERESOLVE could not resolve  
npm ERR!  
npm ERR! While resolving: node-red-contrib-ui-mp4frag@0.1.0  
npm ERR! Found: node-red-dashboard@3.2.0  
npm ERR! node\_modules/node-red-dashboard  
npm ERR! node-red-dashboard@"~3.2.0" from the root project  
npm ERR! peer node-red-dashboard@"\>=2.23.3" from node-red-contrib-ui-led@0.4.11  
npm ERR! node\_modules/node-red-contrib-ui-led  
npm ERR! node-red-contrib-ui-led@"~0.4.11" from the root project  
npm ERR! 3 more (node-red-node-ui-iframe, node-red-node-ui-list, node-red-node-ui-table)  
npm ERR!

---

<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:** [23 January 2023 10:41 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/5 "2023-01-23T10:41:20Z")

</div>

Oops, do it again, but this time, before the install, edit package.json are remove node-red-contrib-ui-mp4frag from the dependencies.

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [23 January 2023 10:52 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/6 "2023-01-23T10:52:59Z")

</div>

npm uninstall node-red-contrib-ui-mp4frag

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 11:06 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/7 "2023-01-23T11:06:30Z")

</div>

Well after a lengthy interval the 'install' finished.  
Now when I start Node-RED I get a huge list of missing node-types.

 ![missing](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f7e5fc5f6ca124315d132e336cad9819782a017b.jpeg)

---

<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:** [23 January 2023 11:34 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/8 "2023-01-23T11:34:40Z")

</div>

OK, as feared, you seem to have a more fundamental issue.

Have a look in your package.json first to see if the Node packages that provide those nodes are included. Did you get any errors from npm?

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 11:57 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/9 "2023-01-23T11:57:23Z")

</div>

I didn't get any errors from 'npm install' when it eventually finished - but when I look in the node\_modules folders they are all empty!!

---

<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:** [23 January 2023 13:34 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/10 "2023-01-23T13:34:22Z")

</div>

Can you share the dependencies from the package.json?

Also, what platform are you on - is it a Pi by any chance? If so, have you checked that you don't have a failing SD-Card?

Maybe also do a quick test:

```auto
cd ~
mkdir temptest
cd temptest
npm init -y
npm install aaa

```

Then just check that it did what it should have done (creates a `~/temptest/node_modules/aaa/` folder with content). Just to make sure that npm is working correctly.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 14:12 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/11 "2023-01-23T14:12:31Z")

</div>

I'm booting off of an SSD 120GB - no SD-card involved.  
The quick test did exactly what you said it would do.

I'm nearly at the point of giving up and re-installing Node-RED.  
I'll back-up the flows file first.

---

<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:** [23 January 2023 17:38 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/12 "2023-01-23T17:38:46Z")

</div>

Weird, sorry not to have helped. Not ever experienced anything like that.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [23 January 2023 18:12 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/13 "2023-01-23T18:12:50Z")

</div>

Thanks for your help thus far.

I've ended up deleting Node-RED and starting from a clean sheet.

I did back-up the .node-red area in case I need to refer to crucial items.

At the moment I busy re-installing the missing nodes - what a boring task!!

---

<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:** [23 January 2023 22:30 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/14 "2023-01-23T22:30:14Z")

</div>

Yes, but at least an easy enough one - I'll happily take boring over difficult - at least some times. 🙂

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [24 January 2023 03:58 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/15 "2023-01-24T03:58:13Z")

</div>

> [@TotallyInformation](#):
>
> I'll happily take boring over difficult

Same here. But once we've trained the computers to do the dull and tedious, there will be nothing left for us except the difficult or impossible...

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [24 January 2023 09:17 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/16 "2023-01-24T09:17:22Z")

</div>

Installed all the missing nodes manually and am now getting these errors when I start Node-RED.  
I've checked the paths and all the files are located in... /usr/lib/node\_modules....

Any suggestions?

===================  
24 Jan 09:01:42 - [info] Node-RED version: v3.0.2  
24 Jan 09:01:42 - [info] Node.js version: v16.19.0  
24 Jan 09:01:42 - [info] Linux 5.10.52-v7l+ arm LE  
24 Jan 09:01:43 - [info] Loading palette nodes  
24 Jan 09:01:47 - [info] Worldmap version 2.33.0  
24 Jan 09:01:47 - [info] Dashboard version 3.3.1 started at /ui  
24 Jan 09:01:48 - [warn] rpi-gpio : Raspberry Pi specific node set inactive  
24 Jan 09:01:48 - [warn] ------------------------------------------------------  
24 Jan 09:01:48 - [warn] [node-red-contrib-hysteresis/hysteresis] 'hysteresis' already registered by module node-red-contrib-edge-trigger  
24 Jan 09:01:48 - [warn] [node-red-contrib-kodi/kodi] Error: Cannot find module '/home/pi/.node-red/node\_modules/node-red-contrib-kodi/kodi.js'  
Require stack:

- /usr/lib/node\_modules/node-red/node\_modules/@node-red/registry/lib/loader.js
- /usr/lib/node\_modules/node-red/node\_modules/@node-red/registry/lib/index.js
- /usr/lib/node\_modules/node-red/node\_modules/@node-red/runtime/lib/nodes/index.js
- /usr/lib/node\_modules/node-red/node\_modules/@node-red/runtime/lib/index.js
- /usr/lib/node\_modules/node-red/lib/red.js
- /usr/lib/node\_modules/node-red/red.js

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [24 January 2023 09:42 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/17 "2023-01-24T09:42:22Z")

</div>

Just re-booted the Pi and the 'Require stack' errors seem to have gone away.  
Now just have a "Waiting for missing types to be registered:" even though I have manually installed them.

Any ideas?

Note: I'm running Debian version: 10 (buster) on a RPi-4B

# Starting as a systemd service. 24 Jan 09:39:33 - [info] Welcome to Node-RED

24 Jan 09:39:33 - [info] Node-RED version: v3.0.2  
24 Jan 09:39:33 - [info] Node.js version: v16.19.0  
24 Jan 09:39:33 - [info] Linux 5.10.52-v7l+ arm LE  
24 Jan 09:39:35 - [info] Loading palette nodes  
24 Jan 09:39:39 - [info] Worldmap version 2.33.0  
24 Jan 09:39:40 - [info] Dashboard version 3.3.1 started at /ui  
24 Jan 09:39:40 - [warn] rpi-gpio : Raspberry Pi specific node set inactive  
24 Jan 09:39:40 - [info] Settings file : /home/pi/.node-red/settings.js  
24 Jan 09:39:40 - [info] Context store : 'default' [module=memory]  
24 Jan 09:39:40 - [info] User directory : /home/pi/.node-red  
24 Jan 09:39:40 - [info] Projects directory: /home/pi/.node-red/projects  
24 Jan 09:39:40 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
24 Jan 09:39:40 - [info] Active project : home\_automation  
24 Jan 09:39:40 - [info] Flows file : /home/pi/.node-red/projects/home\_automation/flows\_iot-super-server.json  
24 Jan 09:39:41 - [warn] Using unencrypted credentials  
24 Jan 09:39:41 - [info] Waiting for missing types to be registered:  
24 Jan 09:39:41 - [info] - sftp  
24 Jan 09:39:41 - [info] - kodi-controller  
24 Jan 09:39:41 - [info] - noraf-config  
24 Jan 09:39:41 - [info] - alexa-remote-account  
24 Jan 09:39:41 - [info] - clarify\_api

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [24 January 2023 10:34 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/18 "2023-01-24T10:34:33Z")

</div>

Situation now is I can stop and start Node-RED without any errors BUT... I always get missing types..

I have deleted package-lock.json and used...  
**npm rebuild** and **npm install --force**  
I still get 'missing types' message (and the flow stops).  
Any suggestions on what my next step should be to rectify this situation??

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 January 2023 10:53 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/19 "2023-01-24T10:53:08Z")

</div>

Are those nodes installed?  
Start NR in safe mode (`node-red --safe`) and check the pallet manager to see if the nodes show up.

---

<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:** [24 January 2023 13:49 UTC](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074/20 "2023-01-24T13:49:20Z")

</div>

> [@drmibell](#):
>
> Same here. But once we've trained the computers to do the dull and tedious, there will be nothing left for us except the difficult or impossible...

Haha, well there will always be plenty of that no matter how good _we_ are - and then there is always the rest of the world messing up I find. That has kept me in profitable employment for over 40 years now. 🤣

[Next page](https://discourse.nodered.org/t/eresolve-error-when-trying-to-remove-a-contrib-node/74074.md?page=2)
