question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with node-serialport (bindings.node initialization failed)

See original GitHub issue

I’m using proton-native, which integrates with electron-builder, and initially filed an issue there, but the author said to file an issue here instead.

Please see the issue https://github.com/kusti8/proton-native/issues/196 for screenshots of the error.

There is an example project here: https://github.com/kfatehi/proton-native-serialport-issue

After npm install just run npm run dist to create the broken exe reproducing the error.

I also cross-posted in a comment on node-serialport and got a response indicating that serialport project plans to switch to N-API in April, which may be the proper solution to this issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
s00500commented, Jul 10, 2019

install electron-rebuild and run npx electron-rebuild -f -p

3reactions
s00500commented, Jul 8, 2019

Thanks for the quick reply, I was using vue-cli-plugin-electron-builder, the solution in my case was to mark serialport as external for the builder

// vue.config.js
module.exports = {
  pluginOptions: {
    electronBuilder: {
      externals: ['serialport']
    }
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - node module version conflict when installing ...
When this type of version mismatch occurs, you can either choose an electron distribution with the target Node version or rebuild the npm...
Read more >
Installing SerialPort
The @serialport/bindings-cpp package uses prebuildify-cross to build ... during the npm install via node-gyp v7 which requires Python 2.x, ...
Read more >
Node.js v19.3.0 Documentation
Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class. new assert.AssertionError( ...
Read more >
System Error Messages for Cisco Unified Communications ...
Explanation For a system running CMI, the serial port through which the voice messaging system is connected is always USB0, and that value...
Read more >
Topics tagged under "node red" | Community
Battery Indicator using Node-Red · Using node-red to output battery life · Node-Red, Sensor Init Failed (i2c-1 error) · Node-Red npm package install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found