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

Excuse me for ref support node 10 ? #118

Open
wupeng889900 opened this issue Jun 13, 2019 · 2 comments
Open

Excuse me for ref support node 10 ? #118

wupeng889900 opened this issue Jun 13, 2019 · 2 comments

Comments

@wupeng889900
Copy link

wupeng889900 commented Jun 13, 2019

┏ Electron -------------------

Error: The module '/Users/wupeng/lncc-electron-vue/node_modules/ref/build/Release/binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
at require (internal/modules/cjs/helpers.js:20:18)
at bindings (/Users/wupeng/lncc-electron-vue/node_modules/bindings/bindings.js:112:48)
at Object. (/Users/wupeng/lncc-electron-vue/node_modules/ref/lib/ref.js:5:47)

┗ ----------------------------
node version 10.0.0
ref version 1.3.5

package.json
"ffi": "node-ffi/node-ffi",
"install": "^0.12.2",
"jquery": "^3.4.1",
"jsonwebtoken": "^8.5.1",
"nan": "^2.14.0",
"net-ping": "^1.2.3",
"node-sass": "^4.12.0",
"nodobjc": "dganzella/NodObjC",
"npm": "^6.9.0",
"ref": "github:TooTallNate/ref",

@aabuhijleh
Copy link

It's working fine with Electron v4/Node 10. You need to use electron-rebuild.

@xuelixiang
Copy link

cnpm rebuild --runtime=electron --target=4.0.5 --disturl=https://atom.io/download/atom-shell --abi=69

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

3 participants