electron-serialport | 基于electron的串口工具桌面应用
kandi X-RAY | electron-serialport Summary
kandi X-RAY | electron-serialport Summary
基于electron的串口工具桌面应用
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of electron-serialport
electron-serialport Key Features
electron-serialport Examples and Code Snippets
Community Discussions
Trending Discussions on electron-serialport
QUESTION
I am collaborating on a VSCode extension for which a native module (serialport) is used. in order to make the solution run stable on all platforms and over time as VScode changes electron versions, i would like to include the prebuild native modules.
it now appears that some (not all) of these precompiled modules are not the version they claim to be.
for testing / validation i would like to programatically determine the ABI version, and if possible the runtime , platform ( darwin , linux , win32 ) and architecture for each of the native modules downloaded by install-prebuild
ie the following error is thrown when I try to load the module in electron 5.0.10 (ABI-70):
...ANSWER
Answered 2019-Aug-24 at 17:29process.versions.modules
should get you the correct ABI for the given node or electron runtime.
Your own solution is the only way to do this without a addition native node module, and parsing/reading the .node
file does not give you the information directly as string or int value (Checked with an hex editor).
Possible reasons are:
- You should be sure that the install process of the module does not trigger the building of your native module eg: running
npm install
without--ignore-scripts.
, since this uses your locally installed node version to rebuild any dependancy if the containing package has a custom install script. - Your pre-build is beeing ignored by other install steps
- The package has uploaded the wrong
.node
files as prebuild.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-serialport
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page