Using the instructions on https://github.com/Fuhua-Chen/ReSpeaker-Microphone-Array-HID-tool in order to control the LED’s on my Respeaker Mic Array on a raspberry pi 3B. I installed npm and ran $sh ./install_linux.sh but I get a 404 error when it tries to download the the repo. The full error log can be see here:
pi@raspberrypi:~/ReSpeaker-Microphone-Array-HID-tool $ sh ./install_linux.sh
npm WARN deprecated [email protected]: request has been deprecated, see https:/github.com/request/request/issues/3142[email protected] install /home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid
node-pre-gyp install --fallback-to-buildnode-pre-gyp ERR! Tried to download(404): https:/github.com/node-hid/node-hid/releases/download/0.5.2/HID-v0.5.2-node-v72-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https:/github.com/node-hid/node-hid/releases/download/0.5.2/HID-v0.5.2-node-v72-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI) (falling back to source compile with node-gyp)
make: Entering directory ‘/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build’
make: *** No rule to make target ‘Release/obj.target/hidapi/hidapi/libusb/hid.o’, needed by ‘Release/obj.target/hidapi.a’. Stop.
make: Leaving directory ‘/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build’
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.97-v7+
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release/HID.node” “–module_name=HID” “–module_path=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release”
gyp ERR! cwd /home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release/HID.node --module_name=HID --module_path=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:310:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Linux 4.19.97-v7+
node-pre-gyp ERR! command “/usr/local/bin/node” “/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid
node-pre-gyp ERR! node -v v12.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release/HID.node --module_name=HID --module_path=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release’ (1)
make: Entering directory ‘/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build’
make: *** No rule to make target ‘Release/obj.target/hidapi/hidapi/libusb/hid.o’, needed by ‘Release/obj.target/hidapi.a’. Stop.
make: Leaving directory ‘/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build’
gyp ERR! build error
gyp ERR! stack Error:make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.97-v7+
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release/HID.node” “–module_name=HID” “–module_path=/home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid/build/HID/Release”
gyp ERR! cwd /home/pi/ReSpeaker-Microphone-Array-HID-tool/node-hid
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-04-30T19_06_44_810Z-debug.log
Press any key to continue…/install_linux.sh: 7: read: arg count
Is this no longer the correct method to get the proper software to control the LED’s? I am new to this kind of thing. I have the microphone working fine, I just want to be able to control the LED’s, if I am going down the wrong path please let me know.