Package.json nearly empty after node installing

Hopefully somebody can help: after try to install @sherlock-gmbh/node-red-contrib-ui-iframe-modal with palette manager I cannot use the manager anymore. I then delete entries of this node out of package.json and package-lock.json and run an npm install ( of some node-red contrib-node) and - the palette manager works again (sorry- maybe also some more forgotten actions performed ;-))
But-so far I know-in the package.json should be a list of all installed nodes- and mine is nearly empty. Is there a way to write the obviously available information of the node-red palette manager, which shows all installed nodes correctly, back to this package.json???

You could have removed it by running
npm remove @sherlock-gmbh/node-red-contrib-ui-iframe-modal
The package file only has additional nodes that you have installed, not all the core nodes.

Thank you, Collin: Two topics to learn :wink:
But in the package.json should be a lot of additional nodes, which I can see in the palette manger. And there is only the one, I installed after the removal of the @sherlock... -node.
So the question remains:
Is there a way to write the obviously available information of the node-red palette manager back to this package.json??? Or is this meaningless?
Greetings
Rüdiger

Can you post the node red startup log please, and also post your package.json.
Also please a screenshot of Manage Palette.
Make sure the package.json that you post is the one mentioned in the startup log.

If they are not in package.json then running npm install would have removed them, unless they are installed globally rather than locally.

Hi Colin,
thank you for your support:
here the startup log and the screenshot of Manage Palette and the as I told very small content of package.json:

Stopped Node-RED graphical event wiring tool.
nodered.service: Consumed 1h 6min 40.211s CPU time.
Started Node-RED graphical event wiring tool.
26 Jun 20:16:38 - [info]
Willkommen bei Node-RED
===================
26 Jun 20:16:38 - [info] Node-RED Version: v3.0.2
26 Jun 20:16:38 - [info] Node.js  Version: v18.17.1
26 Jun 20:16:38 - [info] Linux 6.1.45-v8+ arm64 LE
26 Jun 20:16:40 - [info] Paletten-Nodes werden geladen
26 Jun 20:17:25 - [info] Dashboard up and running
26 Jun 20:17:29 - [info] Dashboard version 3.5.0 started at /ui
26 Jun 20:17:30 - [info] Einstellungsdatei: /home/rp4-touch/.node-red/settings.js
26 Jun 20:17:30 - [info] Kontextspeicher: default [module=memory]
26 Jun 20:17:30 - [info] Benutzerverzeichnis: /home/rp4-touch/.node-red
26 Jun 20:17:30 - [warn] Projekte deaktiviert: editorTheme.projects.enabled=false
26 Jun 20:17:30 - [info] Flow-Datei: /home/rp4-touch/.node-red/flows.json
26 Jun 20:17:30 - [info] Server wird jetzt auf http://127.0.0.1:1880/ ausgeführt
26 Jun 20:17:30 - [warn]
---------------------------------------------------------------------
Die Datei mit den Flow-Credentials wird mit einem vom System
generierten Schlüssel verschlüsselt.
Wenn der vom System generierte Schlüssel aus irgendeinem Grund
verloren geht, kann die Datei mit den Credentials nicht
wiederhergestellt werden. Sie muss dann gelöscht und die
Credentials müssen erneut eingestellt werden.
Es sollte ein eigener Schlüssel mit Hilfe der Option
'credentialSecret' in der Einstellungsdatei vorgegeben werden.
Node-RED wird dann die Datei mit den Flow-Credentials
bei der nächsten Übernahme (deploy) einer Änderung erneut
verschlüsseln.
---------------------------------------------------------------------
26 Jun 20:17:31 - [info] Flows werden gestartet
26 Jun 20:17:31 - [info] [hue-bridge:Hue Bridge] Initializing the bridge (192.168.178.57)…
26 Jun 20:17:31 - [info] [thingzi-timer:Setzen Var: Haustür_Dunkel] Scheduled 'ON' (sun) for Wed Jun 26 2024 21:44:43 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Setzen Var: Haustür_Dunkel] Scheduled 'OFF' (sun) for Thu Jun 27 2024 04:59:27 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Haustür_morgen_aus] Scheduled 'ON' (sun) for Thu Jun 27 2024 05:00:27 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Tischlampe Abends an] Scheduled 'ON' (sun) for Wed Jun 26 2024 21:14:43 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Tischlampe Abends an] Scheduled 'OFF' (tod) for Wed Jun 26 2024 22:30:00 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Mo-do,So] Scheduled 'ON' (tod) for Thu Jun 27 2024 06:45:00 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Mo-do,So] Scheduled 'OFF' (tod) for Wed Jun 26 2024 22:46:00 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Fr-Sa] Scheduled 'ON' (sun) for Sat Jun 29 2024 05:27:24 GMT+0200
26 Jun 20:17:31 - [info] [thingzi-timer:Fr-Sa] Scheduled 'OFF' (tod) for Sat Jun 29 2024 23:59:00 GMT+0200
26 Jun 20:17:32 - [info] Flows sind gestartet


Content of package.json:
{
  "dependencies": {
    "node-red-contrib-fritz": "^1.5.0"
  }
}

That is very strange. What does this command give?
ls -al /home/rp4-touch/.node-red

Here it is...


rp4-touch@RP4-touch:~ $ ls -al /home/rp4-touch/.node-red
insgesamt 1744
drwxr-xr-x   8 rp4-touch rp4-touch   4096 25. Jun 10:44 .
drwxr-xr-x  22 rp4-touch rp4-touch   4096 26. Jun 20:41 ..
drwxr-xr-x   2 rp4-touch rp4-touch   4096 12. Sep 2023  booleanlogicultimatepersist
-rw-r--r--   1 rp4-touch rp4-touch  68789 24. Jun 21:39 .config.nodes.json
-rw-r--r--   1 rp4-touch rp4-touch  70305 24. Jun 21:39 .config.nodes.json.backup
-rw-r--r--   1 rp4-touch rp4-touch     95 17. Aug 2023  .config.runtime.json
-rw-r--r--   1 rp4-touch rp4-touch    969 27. Mai 15:39 .config.users.json
-rw-r--r--   1 rp4-touch rp4-touch    965 27. Mai 15:39 .config.users.json.backup
drwxr-xr-x   2 rp4-touch rp4-touch   4096  5. Dez 2023  .dash
-rw-r--r--   1 rp4-touch rp4-touch    467 29. Jan 19:36 flows_cred.json
-rw-r--r--   1 rp4-touch rp4-touch    371 29. Jan 19:36 .flows_cred.json.backup
-rw-r--r--   1 rp4-touch rp4-touch 659630 25. Jun 10:44 flows.json
-rw-r--r--   1 rp4-touch rp4-touch 659169 25. Jun 10:44 .flows.json.backup
drwxr-xr-x   2 rp4-touch rp4-touch   4096 15. Sep 2023  homekit-persist
drwxr-xr-x   3 rp4-touch rp4-touch   4096 17. Aug 2023  lib
drwxr-xr-x 459 rp4-touch rp4-touch  20480 24. Jun 21:39 node_modules
drwxr-xr-x   2 rp4-touch rp4-touch   4096  7. Sep 2023  nrchkb
-rw-r--r--   1 rp4-touch rp4-touch   1489 24. Jun 21:39 package.json
-rw-r--r--   1 rp4-touch rp4-touch 215966 24. Jun 21:39 package-lock.json
-rw-r--r--   1 rp4-touch rp4-touch  22614 17. Aug 2023  settings.js

That says that package.json is 1489 bytes long. Which does not appear to be consistent with what you posted.

YES- you are right!
But now - I have two files package.json:

    1. the one I posted is in
      /home/rp4-touch/
      !!
    1. and the big one -you found- with all installed nodes is in
      /home/rp4-touch/.node-red

Ok. Anything to do?

At some time you have used npm to manually install a node from your home directory instead of the .node-red directory. You can delete that one and also the node_modules folder you will find in your home directory, where that node is installed.

Ok-learnt a lot! Thank you very much!

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