My Rpi4 sdcard broke. New sdcard, new node-RED LTS (v22.14.0) and npm (11.2.0) installation. My flows are back but I'm missing a lot of nodes and when I try to install them I get this message for every node I'm missing:
npm warn old lockfile
npm warn old lockfile The package-lock.json file was created with an old version of npm,
npm warn old lockfile so supplemental metadata must be fetched from the registry.
npm warn old lockfile
npm warn old lockfile This is a one-time fix-up, please be patient...
npm warn old lockfile
npm error code ENOVERSIONS
npm error No versions available for < node name>
These are warnings but the message: " this is a one-time fix-up, please be patient..." doesn't reassure me.
Have they been removed from the registry (https://registry.npmjs.org/)?
It might be worth trying without the old lock file as this will ensure the newest versions of all the dependencies are used, which may skip the missing nodes.
Stop Node-RED, delete the lock file, you don't need it. Check that your package.json file contains the expected nodes, delete the node_modules folder and then do a npm install.
I followed your advice but unfortunately I kept getting the above messages, even after a reinstall of node-red.
Because node-RED was the 1st only installation I thought it would be better to start from scratch. Removed the sdcard and reinstalled Pi OS and ran the node-RED installation script (what beautiful scripts!). Then I installed all missing nodes...without any problems. The next step is to restore the backups of my flows. I have confidence