Assuming you are doing step 6 "Copy the ".json" file from the temporary folder to "./node-red", the package file will include necessary dependencies. So before launching node-red, execute npm i
pi@raspberrypi:~/.node-red $ sudo npm i
up to date in 13.079s
1 package is looking for funding
run `npm fund` for details
pi@raspberrypi:~/.node-red $ node-red-restart
Restarted Node-RED
pi@raspberrypi:~/.node-red $
But then the dashboard still doesn't start:
and the log still ends with:
---------------------------------------------------------------------
27 Aug 19:52:27 - [info] Waiting for missing types to be registered:
27 Aug 19:52:27 - [info] - simpletime
27 Aug 19:52:27 - [info] - moment
27 Aug 19:52:27 - [info] - func-exec
27 Aug 19:52:27 - [info] - bcrypt
so it does (i mis-read 6. Copy the ".json" file from the temporary folder to "./node-red". as 6. Copy the ".json" files from the temporary folder to "./node-red".)
OK, then npm i wont make any difference because you do not have the original package.json.
FYI: package.json contains a dependency list of node-red nodes to install. So without that, you would have to manually install missing node.s
If your destination machine is identical architecture and OS and has exactly the same nodejs version then probably copying node_modules too would provide a working system. If any of those is different then all bets are off. The npm i command installs and, if necessary, builds all the extra nodes your require so they are compatible with your version of hardware/OS/nodejs version.