Install Node JS ERROR

When I try to install the blinkstick package using “npm install blinkstick” I get these errors. I have no idea what to do. Anyone know anything? I’m on Mac. Thanks in advance!

datahandling@Data-Handlings-MacBook-Pro ~ % npm install blinkstick
npm ERR! code 1
npm ERR! path /Users/datahandling/node_modules/blinkstick/node_modules/node-hid
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! CC(target) Release/obj.target/hidapi/hidapi/mac/hid.o
npm ERR! LIBTOOL-STATIC Release/hidapi.a
npm ERR! CXX(target) Release/obj.target/HID/src/HID.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@17.8.0 | darwin | x64
npm ERR! gyp info find Python using Python version 3.9.12 found at “/usr/local/opt/python@3.9/bin/python3.9”
npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/Users/datahandling/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/Users/datahandling/node_modules/blinkstick/node_modules/node-hid/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/Users/datahandling/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/Users/datahandling/Library/Caches/node-gyp/17.8.0/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/Users/datahandling/Library/Caches/node-gyp/17.8.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/Users/datahandling/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/Users/datahandling/Library/Caches/node-gyp/17.8.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/Users/datahandling/node_modules/blinkstick/node_modules/node-hid’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
npm ERR! …/src/HID.cc:67:5: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR! throw(JSException);
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! …/src/HID.cc:67:5: note: use ‘noexcept(false)’ instead
npm ERR! throw(JSException);
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! noexcept(false)
npm ERR! …/src/HID.cc:70:5: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR! throw(JSException);
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! …/src/HID.cc:70:5: note: use ‘noexcept(false)’ instead
npm ERR! throw(JSException);
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! noexcept(false)
npm ERR! …/src/HID.cc:152:3: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR! throw(JSException)
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! …/src/HID.cc:152:3: note: use ‘noexcept(false)’ instead
npm ERR! throw(JSException)
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! noexcept(false)
npm ERR! …/src/HID.cc:163:3: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR! throw(JSException)
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! …/src/HID.cc:163:3: note: use ‘noexcept(false)’ instead
npm ERR! throw(JSException)
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! noexcept(false)
npm ERR! …/src/HID.cc:608:31: error: too few arguments to function call, expected 3, have 2
npm ERR! node::AtExit(deinitialize, 0);
npm ERR! ~~~~~~~~~~~~ ^
npm ERR! /Users/datahandling/Library/Caches/node-gyp/17.8.0/include/node/node.h:940:18: note: ‘AtExit’ declared here
npm ERR! NODE_EXTERN void AtExit(Environment* env,
npm ERR! ^
npm ERR! 5 errors generated.
npm ERR! make: *** [Release/obj.target/HID/src/HID.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/datahandling/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.4.0
npm ERR! gyp ERR! command “/usr/local/Cellar/node/17.8.0/bin/node” “/Users/datahandling/node_modules/.bin/node-gyp” “rebuild”
npm ERR! gyp ERR! cwd /Users/datahandling/node_modules/blinkstick/node_modules/node-hid
npm ERR! gyp ERR! node -v v17.8.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/datahandling/.npm/_logs/2022-04-06T09_14_04_590Z-debug-0.log
datahandling@Data-Handlings-MacBook-Pro ~ %

I got it working downgrading to Node v8. However when I write “var blinkstick = require(‘blinkstick’);” I get undefined. I installed blinkstick succesfully.

I’m running into the initial euro there as well. I just dropped $100 to grab a bunch of these, it is pretty disheartening to be running into such problems already (before my hardware has even arrived)