# NodeJS on WIndows 10

**URL:** <https://forums.blinkstick.com/t/nodejs-on-windows-10/564>\
**Category:** Uncategorized\
**Created:** [August 18, 2016, 12:23am UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564 "2016-08-18T00:23:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrJaWapa](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/m/7ab992/32.png) [@MrJaWapa](https://forums.blinkstick.com/u/MrJaWapa)\
**Post date:** [August 18, 2016, 12:23am UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/1 "2016-08-18T00:23:57Z")

</div>

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](https://forums.blinkstick.com/t/nodejs-v4-3-1-hid-node-module-error/516)

But I get so lost following the solution(s) given here: [NodeJS V4.3.1 HID.node module error](https://forums.blinkstick.com/t/nodejs-v4-3-1-hid-node-module-error/516)

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

---

<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:** [August 18, 2016, 9:58am UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/2 "2016-08-18T09:58:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![redstormi](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/redstormi/32/349_2.png) [@redstormi](https://forums.blinkstick.com/u/redstormi)\
**Post date:** [August 26, 2016, 6:01pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/3 "2016-08-26T18:01:44Z")

</div>

Any updates on this?

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [August 28, 2016, 6:14pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/4 "2016-08-28T18:14:35Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![redstormi](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/redstormi/32/349_2.png) [@redstormi](https://forums.blinkstick.com/u/redstormi)\
**Post date:** [August 28, 2016, 7:14pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/5 "2016-08-28T19:14:01Z")

</div>

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)
```

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [August 28, 2016, 7:40pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/6 "2016-08-28T19:40:24Z")

</div>

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 😉

---

<div class="post-metadata">

**Author:** ![redstormi](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/redstormi/32/349_2.png) [@redstormi](https://forums.blinkstick.com/u/redstormi)\
**Post date:** [August 28, 2016, 7:43pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/7 "2016-08-28T19:43:24Z")

</div>

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)
```

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [August 28, 2016, 8:56pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/8 "2016-08-28T20:56:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![redstormi](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/redstormi/32/349_2.png) [@redstormi](https://forums.blinkstick.com/u/redstormi)\
**Post date:** [August 28, 2016, 9:00pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/9 "2016-08-28T21:00:50Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [August 28, 2016, 9:04pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/10 "2016-08-28T21:04:31Z")

</div>

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

---

<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:** [August 29, 2016, 6:30pm UTC](https://forums.blinkstick.com/t/nodejs-on-windows-10/564/11 "2016-08-29T18:30:23Z")

</div>

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

> [@BlinkStick Node 1.2.0-beta.0 test package](https://forums.blinkstick.com/t/blinkstick-node-1-2-0-beta-0-test-package/576):
>
> I’ve restructured and updated BlinkStick Node package. Seems that node-hid package has advanced significantly and now offers installation of precompiled module without the need of any build tools. This applies specifically for Windows, but all other platforms seem now to be supported making the installation a breeze. If you could run a quick test to check if BlinkStick package works on your platform by directly installing from GitHub via one simple command. For Windows run: npm install git+ht…
