-
-
Notifications
You must be signed in to change notification settings - Fork 1k
-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error loading serialport module #1025
Comments
I don't know how electron does it's compiling nor do I know how I know how to debug it. I'd open an issue at nwjs. The only think I can thin of is that
|
Thank you for your reply. I tried that, but as i don't have python installed, it gave me a bunch of errors. As i saw this was unqiue error because i didn't find anyone with the same problem i knew this would be hard to solve, so i start looking for alternatives and i found Chrome Apps API. Which is available on NW.js and worked for me. |
Great!
…On Tue, Dec 13, 2016, 11:59 AM Jonathan55 ***@***.***> wrote:
Thank you for your reply.
I tried that, but as i don't have python installed, it gave me a bunch of
errors.
As i saw this was unqiue error because i didn't find anyone with the same
problem i knew this would be hard to solve, so i start looking for
alternatives and i found Chrome Apps API.
https://developer.chrome.com/apps/app_serial
Which is available on NW.js and worked for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1025 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABlbvQ50RNXjun2tBfKz631HSBidmm8ks5rHs8DgaJpZM4LFjjm>
.
|
SerialPort version: npm LTS release (v4.0.6)
NodeJS Version: v6.9.1
Operating System and Hardware Platform: Win 7 x64
Are you using an alternative NodeJS runtime? (eg Electron): NW.js v0.18.2 x64 (Node v6.8.1)
Summary of Problem
Error loading serialport module.
Steps and Code to Reproduce the Issue
According to the NW.js docs (http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/) it's possible to use Native Node Modules if the Node.js and NW.js have the same node version and architecture, which is the case.
It only require to change '{npm-path}\node_modules\node-gyp\src\win_delay_load_hook.cc' file with the one they provide and install node modules with the command
npm install node-module
, and i did that to install serialport on the app directory.But when i try to do
var SerialPort = require('serialport');
i get:The text was updated successfully, but these errors were encountered: