TooTallNate / ref

Turn Buffer instances into "pointers"
http://tootallnate.github.com/ref
451 stars 141 forks source link

Excuse me for ref support node 10 ? #118

Open wupeng889900 opened 5 years ago

wupeng889900 commented 5 years ago

┏ 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 commented 5 years ago

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

xuelixiang commented 4 years ago

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