cmake-js / fastcall

fastcall - Fast, dyncall based foreign function interface library for Node.js
https://www.npmjs.com/package/fastcall
Other
202 stars 14 forks source link

Install with electron #24

Open OpakAlex opened 7 years ago

OpakAlex commented 7 years ago

When i try run this with electron i have issue:

 /var/www/electron/electron-api-demos/ master* npm start                              

> ElectronAPIDemos@1.3.0 start /private/var/www/electron/electron-api-demos
> electron .

App threw an error during load
Error: The module '/private/var/www/electron/electron-api-demos/node_modules/fastcall/build/Release/ref.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 53. 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:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at bindings (/private/var/www/electron/electron-api-demos/node_modules/bindings/bindings.js:81:44)
    at Object.<anonymous> (/private/var/www/electron/electron-api-demos/node_modules/fastcall/lib/ref-libs/ref.js:5:47)

Any ideas?

when trying: var nooocl = require('nooocl')