GregVido / mica-electron

Library to add mica effect of windows 11 in electron app
Apache License 2.0
134 stars 8 forks source link

bug: When I try to build, the following problem occurs #8

Closed iosyyy closed 1 year ago

iosyyy commented 1 year ago
was compiled against a different Node.js version using
  NODE_MODULE_VERSION 83. This version of Node.js requires
  NODE_MODULE_VERSION 109. Please try re-compiling or re-installing

If you need more detailed information, please reply me, THKS

GregVido commented 1 year ago

Hello, are you try to execute this commands:

npm install electron npm install electron-rebuild .\node_modules\.bin\electron-rebuild

And if it doesn' t work, what is your node version ? (node --version)

iosyyy commented 1 year ago

I have tried it but the error is the same and my environment image

        "electron": "21.3.3",
        "electron-builder": "^23.6.0",
        "electron-packager": "^17.1.1",
        "mica-electron": "^1.1.7",
        "electron-rebuild": "^3.2.9",
        "node-loader": "^0.6.0",
        "nodejs-base64": "^2.0.0",
GregVido commented 1 year ago

How your run your project ?

If you write 'electron .' in your terminal, try to write electron --version to see if is the same version as your environment

NicolasConstant commented 1 year ago

I'm running into the same issue: I'm using nvm to manage my nodes versions and with node v18.14.2 I can't get through (tried various rebuilds (npm rebuild, .\node_modules\.bin\electron-rebuild) none did work.

What version of node are you using on your side?

iosyyy commented 1 year ago

The same 19.3.0 as the one I mentioned above

NicolasConstant commented 1 year ago

Strange, with 19.3.0 I also have this error:

image

Tried to rebuild (also with node-gyp) but no luck so far: having this error every-time.

GregVido commented 1 year ago

Try running with this command: npx electron .

iosyyy commented 1 year ago

Try running with this command: npx electron .

I'm not working on this project anymore, but I seem to have tried this method and it didn't work

NicolasConstant commented 1 year ago

No luck:

image

@GregVido what is your node version?

GregVido commented 1 year ago

I use v18.10.0, but the problem with version is about electron, your electron version isn't the same with the module build.

GregVido commented 1 year ago

Hello normally it's fixed!