# Install Node JS ERROR

**URL:** <https://forums.blinkstick.com/t/install-node-js-error/1529>\
**Category:** Support\
**Created:** [April 6, 2022, 9:18am UTC](https://forums.blinkstick.com/t/install-node-js-error/1529 "2022-04-06T09:18:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirkvaniseghem](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@dirkvaniseghem](https://forums.blinkstick.com/u/dirkvaniseghem)\
**Post date:** [April 6, 2022, 9:18am UTC](https://forums.blinkstick.com/t/install-node-js-error/1529/1 "2022-04-06T09:18:38Z")

</div>

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](mailto:node-gyp@9.0.0)  
> npm ERR! gyp info using [node@17.8.0](mailto: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 ~ %

---

<div class="post-metadata">

**Author:** ![dirkvaniseghem](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@dirkvaniseghem](https://forums.blinkstick.com/u/dirkvaniseghem)\
**Post date:** [April 6, 2022, 10:05am UTC](https://forums.blinkstick.com/t/install-node-js-error/1529/2 "2022-04-06T10:05:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nbonatsakis](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/nbonatsakis/32/795_2.png) [@nbonatsakis](https://forums.blinkstick.com/u/nbonatsakis)\
**Post date:** [September 14, 2022, 4:13am UTC](https://forums.blinkstick.com/t/install-node-js-error/1529/3 "2022-09-14T04:13:18Z")

</div>

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)
