Install node-red-node-serialport offline


I would like to install node-red-node-serialport without an internet connexion.
I have downloaded all dependencies package (tgz)

For other package it's very easy. It's enough to copy/paste the folder, but for this I have an "Illegal Instruction" because it's necessary to rebuild serialport.
I try many things .. whitout results

Have you any ideas ?



You will need to investigate how to use npm. It has the commands needed to install packages manually.

Alternatively, if you have access to another device with the same hardware type, you can install it there and then manually copy the folders over, you will need to work out which folders though. You can do that by looking at the package.json file in the node's main folder.



I don't found any commands to make this :frowning:

I have installed the package on a device with internet connexion.
I copy and paste the folder on an other device (but the same)

And when i restart node-red i have an "Illegal Instruction" and node-red is stopped.

During installation there is :

@serialport/bindings@2.0.7 install /usr/lib/node_modules/node-red-node-serialport/node_modules/@serialport/bindings
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

How to launch manually this part of the installation ?