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 work with node/6.2.2 #11

Closed
onewayxp opened this issue Sep 10, 2016 · 1 comment
Closed

can not work with node/6.2.2 #11

onewayxp opened this issue Sep 10, 2016 · 1 comment

Comments

@onewayxp
Copy link

module.js:568
return process.dlopen(module, path._makeLong(filename));
^

Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/Users/oneway/GitLab/2016/MkCRM/batch/node_modules/escpos/node_modules/usb/usb.js:5:38)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)

@onewayxp
Copy link
Author

Now works fine with electron 1.3.5 (node 6.3.0)

https://github.com/electron/electron/blob/master/docs-translations/zh-CN/tutorial/using-native-node-modules.md

export npm_config_disturl=https://atom.io/download/atom-shell
export npm_config_target=1.3.5
export npm_config_arch=x64
export npm_config_runtime=electron
HOME=~/.electron-gyp npm install module-name

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

No branches or pull requests

2 participants