NodeJS on WIndows 10

Is it not possible to run a BlinkStick with node on windows… without needing to hack into NASA?

I get the same error found here: NodeJS V4.3.1 HID.node module error

But I get so lost following the solution(s) given here: NodeJS V4.3.1 HID.node module error

I don’t what all of this is about: https://github.com/arvydas/node-hid
I installed everything… but what do I do from there?

I’m looking into this issue and should have a solution by the end of this week. I’ll update you when a new Node.js module release is ready.

1 Like

Any updates on this?

Hi Andréas,

please be so kind and test my temporary fix for this, tested with node v4.5.0 and the blink,js example:
https://dl.dropboxusercontent.com/u/19452479/blinkstick_HidNodeFix.zip
Replace \node_modules\blinkstick\blinkstick.js
and \node_modules\blinkstick\platform\windows\HID.node

Please let me know if it helps.

1 Like

Hi p0ke!

Thanks, however I still get the same error.

H:\workspace\csgo-intergration>node blink.js
module.js:434
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: %1 is not a valid Win32 application.
\\?\H:\workspace\csgo-intergration\node_modules\blinkstick\platform\windows\HID.node
    at Error (native)
    at Object.Module._extensions..node (module.js:434:18)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (H:\workspace\csgo-intergration\node_modules\blinkstick\blinkstick.js:16:9)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)

Hey, but this error means you´re using the 64 bit version of node.js. Please install the 32bit version of node and give me an update about the result please :wink:

1 Like

Using 32 bit gives me:

H:\workspace\csgo-intergration>node blink.js
H:\workspace\csgo-intergration\node_modules\blinkstick\blinkstick.js:194
            this.device = new usb.HID(device);
                          ^

Error: cannot open device with path \\?\hid#vid_20a0&pid_41e5#7&d742494&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    at Error (native)
    at new BlinkStick (H:\workspace\csgo-intergration\node_modules\blinkstick\blinkstick.js:194:27)
    at findBlinkSticks (H:\workspace\csgo-intergration\node_modules\blinkstick\blinkstick.js:1272:33)
    at Object.module.exports.findFirst (H:\workspace\csgo-intergration\node_modules\blinkstick\blinkstick.js:1422:27)
    at Object.<anonymous> (H:\workspace\csgo-intergration\blink.js:2:25)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)

Hmmm… it seems another application is already using this device. Please check this or if you not sure restart your PC and try again. I´ve tested it again with node 4.5.0 and it is working well.

1 Like

Blinkstick client was running, closing it made nodejs work.
I didn’t expect that since the python API never had a problem with the client running.

Thanks!

Good to hear! I´m sure we will get an official fix in @arvydas libs soon ;-).

1 Like

New beta release is available via Github for now. Please install it using the instructions in this post:

1 Like