Node-serialport: Prebuilt bindings (bindings-v2.0.8-electron-v70-win32-x64.tar.gz) contain v47 modules

Created on 4 Jun 2019  Â·  6Comments  Â·  Source: serialport/node-serialport

The prebuilt bindings provided in bindings-v2.0.8-electron-v70-win32-x64.tar.gz are module version 47 while they should be v70.

I have not checked other architectures (e.g. ia32) or targets.

Most helpful comment

Installing serialport for electron 5.0.6 also fails with NODE_MODULE_VERSION mismatch.

All 6 comments

I keep getting similar errors trying to use serialport with electron.
I've tried lots of electron and node versions combinations, rebuild seems to work fine each time, but when I run my electron app I keep getting these NODE_MODULE_VERSION errors ...
Any hints on the right way to integrate serialport in electron ?
BTW, I'm on osx mojave

Well using electron v4.2.3 with serialport v7.1.5 works on my Windows 10 x64 machine at work.

Somehow it won't download the prebuilt bindings (its using a wrong URL) but I am tricking it by manually providing a cache in AppData\Roaming... Probably gonna file an issue for that too.

Installing serialport for electron 5.0.6 also fails with NODE_MODULE_VERSION mismatch.

if only i had seen this before, i did not have to doubt myself as much

Same here for electron 5.0.10.
In addition I am getting also this error. It seems, that the prebuilt cannot be downloaded from Github.
I've downloaded it manually and put it in the cache folder. But feels a bit dirty ...

electron-builder  version=21.2.0
  • loaded configuration  file=package.json ("build" field)
  • rebuilding native dependencies  dependencies=@serialport/[email protected] platform=darwin arch=x64
  • install prebuilt binary  name=@serialport/bindings version=2.0.8 platform=darwin arch=x64
  • build native dependency from sources  name=@serialport/bindings
                                          version=2.0.8
                                          platform=darwin
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.2
    prebuild-install info looking for cached prebuild @ /Users/ph/.npm/_prebuilds/73d12e-bindings-v2.0.8-electron-v70-darwin-x64.tar.gz
    prebuild-install http request GET https://github.com/node-serialport/node-serialport/releases/download/v2.0.8/bindings-v2.0.8-electron-v70-darwin-x64.tar.gz
    prebuild-install http 404 https://github.com/node-serialport/node-serialport/releases/download/v2.0.8/bindings-v2.0.8-electron-v70-darwin-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=5.0.9 runtime=electron arch=x64 libc= platform=darwin)

I've removed the bad build please follow #1920 for testing on the new versions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fuzzzzel picture Fuzzzzel  Â·  6Comments

jdshin123 picture jdshin123  Â·  3Comments

hugo-a-garcia picture hugo-a-garcia  Â·  8Comments

callen5914 picture callen5914  Â·  8Comments

renatop7 picture renatop7  Â·  3Comments