GregVido / mica-electron

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

version 1.0.9 is built using an old node.js version #3

Closed yazninja closed 1 year ago

yazninja commented 2 years ago

image

Please recompile with a newer NODE_MODULE_VERSION to support latest nodejs

GregVido commented 2 years ago

image

Please recompile with a newer NODE_MODULE_VERSION to support latest nodejs

Ok, I will fix it in the weekend

GregVido commented 2 years ago

image

Please recompile with a newer NODE_MODULE_VERSION to support latest nodejs

Normally it is fixed, I added FAQ in README to help you.

Soahr commented 2 years ago

Hi ! The fix didn't worked for me sadly ...

GregVido commented 2 years ago

Hi ! The fix didn't worked for me sadly ...

Are you try to rebuild the projet ?

Soahr commented 2 years ago

I have this error with electron-rebuild :

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'C:\[ ... ]\node_modules\mica-electron'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" failed with exit code: 1"

Do you have an idea ?

GregVido commented 2 years ago

No idea but if you run the comand with --debug argument, what it say ?

Soahr commented 2 years ago

Nothing more :s What is the node version you used to compile the package ?

GregVido commented 2 years ago

I use v18.10.0

Nevodev commented 2 years ago

Hi ! The fix didn't worked for me sadly ...

Are you try to rebuild the projet ?

I tried to rebuild the project, and it said Rebuild Complete, but when I try to run, it still have this error

image image
GregVido commented 2 years ago

Hi ! The fix didn't worked for me sadly ...

Are you try to rebuild the projet ?

I tried to rebuild the project, and it said Rebuild Complete, but when I try to run, it still have this error image image

try to do this commands in this order:

npm install mica-electron cd .\node_modules\mica-electron\ node-gyp rebuild cd ..\..\ npm install electron npm install electron-rebuild .\node_modules.bin\electron-rebuild

Nevodev commented 2 years ago

node-gyp rebuild

I got this error when node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:325:16) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Windows_NT 10.0.25217 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Proj\test-pack\node_modules\mica-electron gyp ERR! node -v v18.11.0 gyp ERR! node-gyp -v v9.3.0 gyp ERR! not ok

GregVido commented 2 years ago

You don't have more details about the error ?

Nevodev commented 2 years ago

You don't have more details about the error ?

This is all

gyp info it worked if it ends with ok gyp info using node-gyp@9.3.0 gyp info using node@18.11.0 | win32 | x64 gyp info find Python using Python version 3.10.8 found at "C:\Python310\python.exe" gyp info find VS using VS2019 (16.11.32901.82) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" gyp info find VS run with --verbose for detailed information gyp info spawn C:\Python310\python.exe gyp info spawn args [ gyp info spawn args 'C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-I', gyp info spawn args 'C:\Proj\test-pack\node_modules\mica-electron\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\Nevabc\AppData\Local\node-gyp\Cache\18.11.0\include\node\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\Users\Nevabc\AppData\Local\node-gyp\Cache\18.11.0', gyp info spawn args '-Dnode_gyp_dir=C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\\Users\\Nevabc\\AppData\\Local\\node-gyp\\Cache\\18.11.0\\<(target_arch)\\node.lib', gyp info spawn args '-Dmodule_root_dir=C:\Proj\test-pack\node_modules\mica-electron', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\Proj\test-pack\node_modules\mica-electron\build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp: binding.gyp not found (cwd: C:\Proj\test-pack\node_modules\mica-electron) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:325:16) gyp ERR! stack at ChildProcess.emit (node:events:513:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) gyp ERR! System Windows_NT 10.0.25217 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Nevabc\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Proj\test-pack\node_modules\mica-electron gyp ERR! node -v v18.11.0 gyp ERR! node-gyp -v v9.3.0 gyp ERR! not ok

GregVido commented 2 years ago

You don't have binding.gyp in \node_modules\mica-electron ?

Nevodev commented 2 years ago

node-gyp rebuild

Oh sorry, I cloned the project from github. node-gyp works now.

Nevodev commented 2 years ago

Hi ! The fix didn't worked for me sadly ...

Are you try to rebuild the projet ?

I tried to rebuild the project, and it said Rebuild Complete, but when I try to run, it still have this error image image

try to do this commands in this order:

npm install mica-electron cd .\node_modules\mica-electron node-gyp rebuild cd ....\ npm install electron npm install electron-rebuild .\node_modules.bin\electron-rebuild

I didn't use npm, I just cloned it from github, and it works now. Thank you very much.