# Issues installing node.js API packages -

**URL:** <https://forums.blinkstick.com/t/issues-installing-node-js-api-packages/334>\
**Category:** Support\
**Created:** [December 7, 2015, 9:12am UTC](https://forums.blinkstick.com/t/issues-installing-node-js-api-packages/334 "2015-12-07T09:12:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_riddell](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/a/58f4c7/32.png) [@a\_riddell](https://forums.blinkstick.com/u/a_riddell)\
**Post date:** [December 7, 2015, 9:12am UTC](https://forums.blinkstick.com/t/issues-installing-node-js-api-packages/334/1 "2015-12-07T09:12:54Z")

</div>

On trying to install

```
npm install -g blinkstick

```

It looks to fail when trying to install the usb required module. (I get a similar error if I try and install that module separately… So probably more of an issue with node-usb than node-blinkstick!)

Various errors such as

- error C2011: ‘timespec’: ‘struct’ type redefinition (compiling source file …\libusb\libusb\io.c)

- warning C4244: ‘=’: conversion from ‘time\_t’ to ‘long’, possible loss of data

- warning C4244: ‘=’: conversion from ‘\_\_int64’ to ‘unsigned int’, possible loss of data

OS is Windows 10 Pro. 10.0.10240

node.js process stuff

```
versions:
   { http_parser: '2.6.0',
     node: '5.1.1',
     v8: '4.6.85.31',
     uv: '1.7.5',
     zlib: '1.2.8',
     ares: '1.10.1-DEV',
     icu: '56.1',
     modules: '47',
     openssl: '1.0.2e' },
  arch: 'x64',
  platform: 'win32',

```

I suspect it must be some 32bit vs 64bit issue or similar that something is refusing to build on my system.

---

<div class="post-metadata">

**Author:** ![a\_riddell](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/a/58f4c7/32.png) [@a\_riddell](https://forums.blinkstick.com/u/a_riddell)\
**Post date:** [December 7, 2015, 1:21pm UTC](https://forums.blinkstick.com/t/issues-installing-node-js-api-packages/334/2 "2015-12-07T13:21:45Z")

</div>

I managed to get it working. I installed node-hid and had to manually recompile it as per instructions on their site. Then I hacked the start of the main blinkstick.js so it was just

```
usb = require('node-hid')

```

Seems to work now with basic setting colours etc.

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [December 7, 2015, 7:31pm UTC](https://forums.blinkstick.com/t/issues-installing-node-js-api-packages/334/3 "2015-12-07T19:31:24Z")

</div>

Thanks for reporting your solution. Will look into getting it working just by installing blinkstick package via npm.

---

<div class="post-metadata">

**Author:** ![gentry\_riggen](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/gentry_riggen/32/246_2.png) [@gentry\_riggen](https://forums.blinkstick.com/u/gentry_riggen)\
**Post date:** [February 5, 2016, 4:46am UTC](https://forums.blinkstick.com/t/issues-installing-node-js-api-packages/334/4 "2016-02-05T04:46:39Z")

</div>

Any word on getting this fixed via npm install blinkstick?
