Node-red-conrib-ewelink-cube install fails

Hi can anyone help please. I love using Node-Red to control / interogate many devices around the home because I have very little 'coding' knowledge.

I wish to use the 'ewelink-cube' nodes to interact with the Sonoff iHost Hub but the nodes continually fail to install. here is the install log;

Can anyone decipher it for me and advise corrective action? Thanks in advance....

2023-09-15T16:03:09.768Z Install : node-red-contrib-ewelink-cube 1.0.0

2023-09-15T16:09:06.157Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:09:30.773Z [out] 
2023-09-15T16:09:30.773Z [out] > usb@1.6.3 install /home/pi/.node-red/node_modules/usb
2023-09-15T16:09:30.773Z [out] > prebuild-install --verbose || node-gyp rebuild
2023-09-15T16:09:30.773Z [out] 
2023-09-15T16:09:31.543Z [err] prebuild-install
2023-09-15T16:09:31.544Z [err]  
2023-09-15T16:09:31.545Z [err] info begin Prebuild-install version 5.3.3
2023-09-15T16:09:31.558Z [err] prebuild-install
2023-09-15T16:09:31.558Z [err]  info looking for cached prebuild @ /home/pi/.npm/_prebuilds/470134-usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:09:31.560Z [err] prebuild-install
2023-09-15T16:09:31.560Z [err]  http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:09:33.216Z [err] prebuild-install
2023-09-15T16:09:33.216Z [err]  http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:09:33.223Z [err] prebuild-install
2023-09-15T16:09:33.223Z [err]  WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=arm libc= platform=linux)
2023-09-15T16:09:35.447Z [out] make: Entering directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:09:35.450Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/core.o
2023-09-15T16:09:37.198Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
2023-09-15T16:09:38.629Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
2023-09-15T16:09:39.121Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/io.o
2023-09-15T16:09:40.681Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
2023-09-15T16:09:40.982Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
2023-09-15T16:09:41.429Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
2023-09-15T16:09:41.698Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
2023-09-15T16:09:41.919Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
2023-09-15T16:09:45.136Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
2023-09-15T16:09:45.306Z [err] ../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
2023-09-15T16:09:45.306Z [err]  #include <libudev.h>
2023-09-15T16:09:45.306Z [err]           ^~~~~~~~~~~
2023-09-15T16:09:45.306Z [err] compilation terminated.
2023-09-15T16:09:45.313Z [err] make: *** [libusb.target.mk:148: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
2023-09-15T16:09:45.313Z [out] make: Leaving directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:09:45.317Z [err] gyp
2023-09-15T16:09:45.318Z [err]  
2023-09-15T16:09:45.319Z [err] ERR! build error 
2023-09-15T16:09:45.321Z [err] gyp
2023-09-15T16:09:45.321Z [err]  ERR! stack Error: `make` failed with exit code: 2
2023-09-15T16:09:45.321Z [err] gyp
2023-09-15T16:09:45.321Z [err]  ERR! stack
2023-09-15T16:09:45.321Z [err]      at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2023-09-15T16:09:45.321Z [err] gyp ERR!
2023-09-15T16:09:45.322Z [err]  stack     at ChildProcess.emit (events.js:310:20)
2023-09-15T16:09:45.322Z [err] gyp ERR! 
2023-09-15T16:09:45.322Z [err] stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2023-09-15T16:09:45.323Z [err] gyp
2023-09-15T16:09:45.323Z [err]  ERR! System Linux 4.19.97-v7+
2023-09-15T16:09:45.323Z [err] gyp 
2023-09-15T16:09:45.323Z [err] ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2023-09-15T16:09:45.323Z [err] gyp ERR!
2023-09-15T16:09:45.324Z [err]  cwd /home/pi/.node-red/node_modules/usb
2023-09-15T16:09:45.324Z [err] gyp ERR! node -v
2023-09-15T16:09:45.324Z [err]  v12.16.2
2023-09-15T16:09:45.324Z [err] gyp 
2023-09-15T16:09:45.324Z [err] ERR! node-gyp -v v5.1.0
2023-09-15T16:09:45.324Z [err] gyp ERR! 
2023-09-15T16:09:45.325Z [err] not ok 
2023-09-15T16:09:47.780Z [err] npm
2023-09-15T16:09:47.781Z [err]  WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
2023-09-15T16:09:47.782Z [err] npm
2023-09-15T16:09:47.782Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 (node_modules/usb):
2023-09-15T16:09:47.782Z [err] npm
2023-09-15T16:09:47.782Z [err]  WARN optional
2023-09-15T16:09:47.782Z [err]  SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
2023-09-15T16:09:47.782Z [err] npm WARN
2023-09-15T16:09:47.782Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2023-09-15T16:09:47.783Z [err] 
2023-09-15T16:09:47.787Z [out] + node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:09:47.787Z [out] updated 1 package in 39.468s
2023-09-15T16:09:49.743Z [out] 
2023-09-15T16:09:49.743Z [out] 22 packages are looking for funding
2023-09-15T16:09:49.743Z [out]   run `npm fund` for details
2023-09-15T16:09:49.743Z [out] 
2023-09-15T16:09:49.820Z rc=0

-----------------------------------------------------------
2023-09-15T16:13:14.841Z Install : node-red-contrib-ewelink-cube 1.0.0

2023-09-15T16:19:11.272Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:19:39.993Z [out] 
2023-09-15T16:19:39.993Z [out] > usb@1.6.3 install /home/pi/.node-red/node_modules/usb
2023-09-15T16:19:39.993Z [out] > prebuild-install --verbose || node-gyp rebuild
2023-09-15T16:19:39.993Z [out] 
2023-09-15T16:19:40.846Z [err] prebuild-install
2023-09-15T16:19:40.848Z [err]  
2023-09-15T16:19:40.849Z [err] info begin Prebuild-install version 5.3.3
2023-09-15T16:19:40.862Z [err] prebuild-install
2023-09-15T16:19:40.862Z [err]  info looking for cached prebuild @ /home/pi/.npm/_prebuilds/470134-usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:19:40.865Z [err] prebuild-install
2023-09-15T16:19:40.866Z [err]  http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:19:41.443Z [err] prebuild-install
2023-09-15T16:19:41.444Z [err]  http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:19:41.450Z [err] prebuild-install
2023-09-15T16:19:41.451Z [err]  WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=arm libc= platform=linux)
2023-09-15T16:19:44.185Z [out] make: Entering directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:19:44.193Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/core.o
2023-09-15T16:19:48.608Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
2023-09-15T16:19:50.108Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
2023-09-15T16:19:50.644Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/io.o
2023-09-15T16:19:52.227Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
2023-09-15T16:19:52.530Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
2023-09-15T16:19:53.027Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
2023-09-15T16:19:53.306Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
2023-09-15T16:19:53.536Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
2023-09-15T16:19:56.836Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
2023-09-15T16:19:57.015Z [err] ../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
2023-09-15T16:19:57.015Z [err]  #include <libudev.h>
2023-09-15T16:19:57.015Z [err]           ^~~~~~~~~~~
2023-09-15T16:19:57.015Z [err] compilation terminated.
2023-09-15T16:19:57.022Z [err] make: *** [libusb.target.mk:148: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
2023-09-15T16:19:57.023Z [out] make: Leaving directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:19:57.027Z [err] gyp
2023-09-15T16:19:57.028Z [err]  
2023-09-15T16:19:57.028Z [err] ERR! build error 
2023-09-15T16:19:57.030Z [err] gyp
2023-09-15T16:19:57.030Z [err]  ERR! stack Error: `make` failed with exit code: 2
2023-09-15T16:19:57.030Z [err] gyp ERR! 
2023-09-15T16:19:57.031Z [err] stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2023-09-15T16:19:57.031Z [err] gyp 
2023-09-15T16:19:57.031Z [err] ERR! stack
2023-09-15T16:19:57.031Z [err]      at ChildProcess.emit (events.js:310:20)
2023-09-15T16:19:57.031Z [err] gyp ERR!
2023-09-15T16:19:57.031Z [err]  stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2023-09-15T16:19:57.032Z [err] gyp 
2023-09-15T16:19:57.032Z [err] ERR! System Linux 4.19.97-v7+
2023-09-15T16:19:57.032Z [err] gyp
2023-09-15T16:19:57.033Z [err]  ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2023-09-15T16:19:57.033Z [err] gyp ERR!
2023-09-15T16:19:57.033Z [err]  cwd /home/pi/.node-red/node_modules/usb
2023-09-15T16:19:57.033Z [err] gyp
2023-09-15T16:19:57.033Z [err]  ERR! node -v
2023-09-15T16:19:57.033Z [err]  v12.16.2
2023-09-15T16:19:57.033Z [err] gyp ERR!
2023-09-15T16:19:57.034Z [err]  node-gyp -v v5.1.0
2023-09-15T16:19:57.034Z [err] gyp
2023-09-15T16:19:57.034Z [err]  ERR! not ok 
2023-09-15T16:19:59.604Z [err] npm
2023-09-15T16:19:59.605Z [err]  WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
2023-09-15T16:19:59.605Z [err] npm
2023-09-15T16:19:59.606Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 (node_modules/usb):
2023-09-15T16:19:59.606Z [err] npm WARN optional
2023-09-15T16:19:59.606Z [err]  SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
2023-09-15T16:19:59.606Z [err] npm WARN
2023-09-15T16:19:59.606Z [err]  optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2023-09-15T16:19:59.607Z [err] 
2023-09-15T16:19:59.610Z [out] + node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:19:59.610Z [out] updated 1 package in 45.327s
2023-09-15T16:20:01.615Z [out] 
2023-09-15T16:20:01.615Z [out] 22 packages are looking for funding
2023-09-15T16:20:01.615Z [out]   run `npm fund` for details
2023-09-15T16:20:01.615Z [out] 
2023-09-15T16:20:01.662Z rc=0

-----------------------------------------------------------
2023-09-15T16:30:32.467Z Install : node-red-contrib-ewelink-cube 1.0.0

2023-09-15T16:36:28.784Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:36:53.441Z [out] 
2023-09-15T16:36:53.441Z [out] > usb@1.6.3 install /home/pi/.node-red/node_modules/usb
2023-09-15T16:36:53.441Z [out] > prebuild-install --verbose || node-gyp rebuild
2023-09-15T16:36:53.441Z [out] 
2023-09-15T16:36:54.203Z [err] prebuild-install
2023-09-15T16:36:54.205Z [err]  
2023-09-15T16:36:54.205Z [err] info begin Prebuild-install version 5.3.3
2023-09-15T16:36:54.218Z [err] prebuild-install
2023-09-15T16:36:54.219Z [err]  info 
2023-09-15T16:36:54.219Z [err] looking for cached prebuild @ /home/pi/.npm/_prebuilds/470134-usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:36:54.220Z [err] prebuild-install
2023-09-15T16:36:54.220Z [err]  http 
2023-09-15T16:36:54.220Z [err] request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:36:54.830Z [err] prebuild-install
2023-09-15T16:36:54.831Z [err]  http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:36:54.838Z [err] prebuild-install
2023-09-15T16:36:54.838Z [err]  WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=arm libc= platform=linux)
2023-09-15T16:36:57.030Z [out] make: Entering directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:36:57.043Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/core.o
2023-09-15T16:36:58.768Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
2023-09-15T16:37:00.239Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
2023-09-15T16:37:00.725Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/io.o
2023-09-15T16:37:02.348Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
2023-09-15T16:37:02.655Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
2023-09-15T16:37:03.097Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
2023-09-15T16:37:03.368Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
2023-09-15T16:37:03.588Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
2023-09-15T16:37:06.817Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
2023-09-15T16:37:06.983Z [err] ../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
2023-09-15T16:37:06.983Z [err]  #include <libudev.h>
2023-09-15T16:37:06.983Z [err]           ^~~~~~~~~~~
2023-09-15T16:37:06.983Z [err] compilation terminated.
2023-09-15T16:37:06.990Z [err] make: *** [libusb.target.mk:148: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
2023-09-15T16:37:06.991Z [out] make: Leaving directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:37:06.995Z [err] gyp
2023-09-15T16:37:06.996Z [err]  
2023-09-15T16:37:06.996Z [err] ERR! build error 
2023-09-15T16:37:06.998Z [err] gyp
2023-09-15T16:37:06.998Z [err]  ERR! stack
2023-09-15T16:37:06.998Z [err]  Error: `make` failed with exit code: 2
2023-09-15T16:37:06.998Z [err] gyp 
2023-09-15T16:37:06.998Z [err] ERR! stack
2023-09-15T16:37:06.999Z [err]      at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2023-09-15T16:37:06.999Z [err] gyp
2023-09-15T16:37:06.999Z [err]  ERR! 
2023-09-15T16:37:06.999Z [err] stack     at ChildProcess.emit (events.js:310:20)
2023-09-15T16:37:06.999Z [err] gyp 
2023-09-15T16:37:06.999Z [err] ERR! stack
2023-09-15T16:37:06.999Z [err]      at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2023-09-15T16:37:07.000Z [err] gyp
2023-09-15T16:37:07.000Z [err]  ERR! System Linux 4.19.97-v7+
2023-09-15T16:37:07.000Z [err] gyp 
2023-09-15T16:37:07.000Z [err] ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2023-09-15T16:37:07.001Z [err] gyp
2023-09-15T16:37:07.001Z [err]  ERR! 
2023-09-15T16:37:07.001Z [err] cwd /home/pi/.node-red/node_modules/usb
2023-09-15T16:37:07.001Z [err] gyp 
2023-09-15T16:37:07.001Z [err] ERR! node -v
2023-09-15T16:37:07.001Z [err]  v12.16.2
2023-09-15T16:37:07.001Z [err] gyp
2023-09-15T16:37:07.001Z [err]  ERR! 
2023-09-15T16:37:07.001Z [err] node-gyp -v v5.1.0
2023-09-15T16:37:07.002Z [err] gyp ERR!
2023-09-15T16:37:07.002Z [err]  not ok 
2023-09-15T16:37:09.553Z [err] npm WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
2023-09-15T16:37:09.553Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 (node_modules/usb):
2023-09-15T16:37:09.553Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
2023-09-15T16:37:09.553Z [err] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2023-09-15T16:37:09.553Z [err] 
2023-09-15T16:37:09.553Z [out] + node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:37:09.553Z [out] updated 1 package in 38.713s
2023-09-15T16:37:11.503Z [out] 
2023-09-15T16:37:11.503Z [out] 22 packages are looking for funding
2023-09-15T16:37:11.503Z [out]   run `npm fund` for details
2023-09-15T16:37:11.503Z [out] 
2023-09-15T16:37:11.588Z rc=0

-----------------------------------------------------------
2023-09-15T16:37:44.080Z Install : node-red-contrib-ewelink-cube 1.0.0

2023-09-15T16:43:40.397Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:44:03.877Z [out] 
2023-09-15T16:44:03.877Z [out] > usb@1.6.3 install /home/pi/.node-red/node_modules/usb
2023-09-15T16:44:03.877Z [out] > prebuild-install --verbose || node-gyp rebuild
2023-09-15T16:44:03.877Z [out] 
2023-09-15T16:44:04.641Z [err] prebuild-install
2023-09-15T16:44:04.643Z [err]  
2023-09-15T16:44:04.643Z [err] info begin Prebuild-install version 5.3.3
2023-09-15T16:44:04.656Z [err] prebuild-install
2023-09-15T16:44:04.656Z [err]  info 
2023-09-15T16:44:04.657Z [err] looking for cached prebuild @ /home/pi/.npm/_prebuilds/470134-usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:44:04.658Z [err] prebuild-install
2023-09-15T16:44:04.658Z [err]  http 
2023-09-15T16:44:04.658Z [err] request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:44:05.246Z [err] prebuild-install
2023-09-15T16:44:05.247Z [err]  http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v72-linux-arm.tar.gz
2023-09-15T16:44:05.253Z [err] prebuild-install
2023-09-15T16:44:05.254Z [err]  WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=arm libc= platform=linux)
2023-09-15T16:44:07.488Z [out] make: Entering directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:44:07.490Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/core.o
2023-09-15T16:44:09.268Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
2023-09-15T16:44:10.710Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
2023-09-15T16:44:11.206Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/io.o
2023-09-15T16:44:12.766Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
2023-09-15T16:44:13.064Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
2023-09-15T16:44:13.552Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
2023-09-15T16:44:13.819Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
2023-09-15T16:44:14.039Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
2023-09-15T16:44:17.277Z [out]   CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
2023-09-15T16:44:17.442Z [err] ../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
2023-09-15T16:44:17.442Z [err]  #include <libudev.h>
2023-09-15T16:44:17.442Z [err]           ^~~~~~~~~~~
2023-09-15T16:44:17.442Z [err] compilation terminated.
2023-09-15T16:44:17.450Z [err] make: *** [libusb.target.mk:148: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
2023-09-15T16:44:17.450Z [out] make: Leaving directory '/home/pi/.node-red/node_modules/usb/build'
2023-09-15T16:44:17.454Z [err] gyp
2023-09-15T16:44:17.455Z [err]  
2023-09-15T16:44:17.455Z [err] ERR! build error 
2023-09-15T16:44:17.457Z [err] gyp
2023-09-15T16:44:17.458Z [err]  ERR! stack
2023-09-15T16:44:17.458Z [err]  Error: `make` failed with exit code: 2
2023-09-15T16:44:17.458Z [err] gyp
2023-09-15T16:44:17.458Z [err]  ERR! 
2023-09-15T16:44:17.458Z [err] stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2023-09-15T16:44:17.458Z [err] gyp 
2023-09-15T16:44:17.458Z [err] ERR! 
2023-09-15T16:44:17.458Z [err] stack     at ChildProcess.emit (events.js:310:20)
2023-09-15T16:44:17.459Z [err] gyp 
2023-09-15T16:44:17.459Z [err] ERR! 
2023-09-15T16:44:17.459Z [err] stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2023-09-15T16:44:17.459Z [err] gyp
2023-09-15T16:44:17.460Z [err]  ERR! System
2023-09-15T16:44:17.460Z [err]  Linux 4.19.97-v7+
2023-09-15T16:44:17.460Z [err] gyp
2023-09-15T16:44:17.460Z [err]  ERR! command
2023-09-15T16:44:17.460Z [err]  "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2023-09-15T16:44:17.460Z [err] gyp 
2023-09-15T16:44:17.460Z [err] ERR! cwd
2023-09-15T16:44:17.460Z [err]  /home/pi/.node-red/node_modules/usb
2023-09-15T16:44:17.461Z [err] gyp ERR!
2023-09-15T16:44:17.461Z [err]  node -v v12.16.2
2023-09-15T16:44:17.461Z [err] gyp
2023-09-15T16:44:17.461Z [err]  ERR!
2023-09-15T16:44:17.461Z [err]  node-gyp -v v5.1.0
2023-09-15T16:44:17.461Z [err] gyp
2023-09-15T16:44:17.461Z [err]  ERR! 
2023-09-15T16:44:17.461Z [err] not ok 
2023-09-15T16:44:20.086Z [err] npm
2023-09-15T16:44:20.086Z [err]  WARN node-red-contrib-ui-led@0.3.1 requires a peer of node-red-dashboard@2.14.x but none is installed. You must install peer dependencies yourself.
2023-09-15T16:44:20.087Z [err] npm
2023-09-15T16:44:20.088Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 (node_modules/usb):
2023-09-15T16:44:20.088Z [err] npm WARN optional
2023-09-15T16:44:20.088Z [err]  SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
2023-09-15T16:44:20.088Z [err] npm 
2023-09-15T16:44:20.088Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2023-09-15T16:44:20.090Z [err] 
2023-09-15T16:44:20.093Z [out] + node-red-contrib-ewelink-cube@1.0.0
2023-09-15T16:44:20.093Z [out] updated 1 package in 37.547s
2023-09-15T16:44:21.963Z [out] 
2023-09-15T16:44:21.963Z [out] 22 packages are looking for funding
2023-09-15T16:44:21.963Z [out]   run `npm fund` for details
2023-09-15T16:44:21.963Z [out] 
2023-09-15T16:44:22.002Z rc=0

According to that, it installed.

The other errors are due to NPM trying to update/build other packages - in particular:

which if you look at that link, does not exist. So it tries (and fails) to build it for you

Reading further down:

Looking at the clues so far, it seems your PI is OLD and quite a long way out of date

node-gyp is currently on V9.x

Node 12 is End Of Life some time ago

That kernel is from 2018


In short - you device needs some proper TLC (and a whole bunch of updates)

Start there is my suggestion.

Steve thank you so much for your response I really appreciate it. I'll do some research regarding the issues you have raised and see if I can achieve a more successful outcome. I'll report back here as to my progress. Very grateful, Jon

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