RSATom / WebChimera.js

[ABANDONED] libvlc binding for Electron
GNU Lesser General Public License v2.1
661 stars 104 forks source link

Uncaught Error: The module 'project/node_modules/webchimera.js/build/Release/WebChimera.js.node' #131

Closed angjelkom closed 3 years ago

angjelkom commented 6 years ago

when using electron@latest 1.8.4 currently, not mater if i use the prebuilt version, or build it from source, i get this error on mac:

Uncaught Error: The module 'project/node_modules/webchimera.js/build/Release/WebChimera.js.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 46. This version of Node.js requires NODE_MODULE_VERSION 57. 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:172:20) at Object.Module._extensions..node (module.js:598:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at bindings

RSATom commented 6 years ago

You have to build it yourself for Electron version you have.

angjelkom commented 6 years ago

@RSATom could you plz give me a direction on how to do it?

RSATom commented 6 years ago

https://github.com/RSATom/WebChimera.js#build-prerequisites https://github.com/RSATom/WebChimera.js#build-from-sources https://github.com/RSATom/WebChimera.js/blob/master/build_electron.sh

RSATom commented 6 years ago

but keep in mind https://github.com/RSATom/WebChimera.js/issues/69

angjelkom commented 6 years ago

@RSATom as i said i tried that on mac but i still get the same error

RSATom commented 6 years ago

was compiled against a different Node.js version using

Means exactly what it says. You have to build WebChimera.js for your Electron version. And don't forget update target version number inside build_electron.sh

RSATom commented 3 years ago

Closed as too old.