-
Notifications
You must be signed in to change notification settings - Fork 193
NODE_MODULE_VERSION problems with electron 1.7.6 #77
Comments
Also can reproduce with electron-forge:
add the following to index.html:
On load I get the following error in the console:
Still using macOS and node 8.4.0 |
I'm also having this problem on both node 6.11.4 and 8.6.0 (tried both) |
Having the same issue with node 8.2.1 and electron 1.7.8 (think this is an electron / electron-rebuild problem. Electron uses a different version of NodeJs than your environment.)
|
This sounds like more of an |
I can't find 54 version at https://nodejs.org/en/download/releases/, any suggestions ? |
It's the module version, think it's used in Node v. 7.0.0 (just a guess) |
We had the same problem but got around it by ensuring that ./node_modules/.bin/electron-rebuild is run directly after any npm install on our macs |
I'm having the same problem as OP (the exact version by the way) I am using nvm to downgrade my env node version to the exact current Electron node version, also, I am using electron-rebuild in order to try rebuild the imported module. The native module is mine and compiled by my own. I've tried to follow this tutorial but the error keeps going on, and I dunno how to do. |
^ This worked for me |
same problem with
I installed the rebuild tool using |
HI,
Include in the main.ts/main.js file |
@Acika00mk also remember to rebuild dev dependencies as Use this instead for
|
I am having the same issue with nwjs, could not find a working solution |
@bwheeler96 's solution worked for me to
Followed the instructions on https://github.com/electron/electron-rebuild "How does it work?" |
Passing the target version number using the Note: this is the Electron version, not the Node version. Eg |
I faced the same issue with grpc module and in my case, I was using electron and have set a wrong electron version in the env variable "export npm_config_target=1.2.3", setting it to the electron version I am using resolved the issue on my end. Hope this helps someone who set env variables as given here (https://electronjs.org/docs/tutorial/using-native-node-modules#the-npm-way) |
I had this same issue with a different library. I came accross this issue, and @benjcresswell 's solution worked for me, but I was on Windows - so I ran: |
Closing this out because building native modules correctly is outside the scope of |
I'm using node version 7.10.0, electron 1.7.6 and macOS. When running
the following error occurs
Things I've tried:
Any idea what's going on here? I would've expected one of the three ways to get native modules to work would do the trick.
The text was updated successfully, but these errors were encountered: