Skip to content
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

Can not make it run with electron #21

Closed
MajPay opened this issue Aug 1, 2017 · 2 comments
Closed

Can not make it run with electron #21

MajPay opened this issue Aug 1, 2017 · 2 comments

Comments

@MajPay
Copy link

MajPay commented Aug 1, 2017

Hello,

thanks for this great package! I already developed some business logic an am able to access my cards via nodejs. Thats fun, unfortunately i can not make it run with electron. Can you please tell me what versions of electron and nfc-pcsc are compatible? I rebuilt the modules like explained but i always get the same kind of error:

Error: The module '.../node_modules/@pokusew/pcsclite/build/Release/pcsclite.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing

I am simply too stupid to figure it out :-(

changing nodejs version does not help since electron seems to use its own node version.

thanks in advance

@MajPay
Copy link
Author

MajPay commented Aug 1, 2017

I got it working now.

  1. i used electron 1.7.5 (beta)

  2. create a .npmrc file in project root, add following content

runtime = electron
target = 1.7.5
target_arch = x64
disturl = https://atom.io/download/atom-shell

Then: npm rebuild

@MajPay MajPay closed this as completed Aug 1, 2017
@francescocatalano
Copy link

This worked for me (electron 3.0.0):
https://github.com/electron/electron-rebuild
Then => $(npm bin)/electron-rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants