Exporting installed Palette Nodes

I have a node red system installed on a raspberry pi-0-w running a very old o/s, Its been recommended that i re-install an upto date os etc,

I am installing onto a 2nd pi while the original system continues to run, and have exported /imported the flows ok.

However there are a number of Palette nodes I have installed for testing playing etc some are in use many just sit in test flows,

installing each 1 manually is a chore especially when some list many options when the palette is searched with the reported node ids in the post deploy warning list

any way to automate/script this??

Cheers..

Copy the package.json file inside the.node-red directory to the 2nd machine and run

npm install

Here is a similar thread: How do I properly copy credit and flow after OS update on a RPI - #2 by Colin

Thanks... I should know a bit more about the tools im using perhaps..