electron-vibrancy icon indicating copy to clipboard operation
electron-vibrancy copied to clipboard

node-gyp build error v8::Value::BooleanValue

Open marmelin opened this issue 4 years ago • 9 comments

I installed everything for node-gyp, but it still gives errors. This one seems like a code or build-version problem. Does anyone know something about it?

thx in advance

Error

With Windows 10 SDK (10.0.19041.0)

Vibrancy.cc
C:\Projects\tmp\hyper-transparent\electron-vibrancy\src\Vibrancy.cc(86,57): 
   error C2660: "v8::Value::BooleanValue": 
   Function does not accept null values 
        [C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\Vibrancy.vcxproj]
C:\Users\lochmar\AppData\Local\node-gyp\Cache\15.1.0\include\node\v8.h(2904,8): 
   message : See declaration of  "v8::Value::BooleanValue" 
        [C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\Vibrancy.vcxproj]
Complete node-gyp build error ``` C:\Projects\tmp\hyper-transparent\electron-vibrancy>npm install

[email protected] install node-gyp rebuild

gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info find Python using Python version 3.9.0 found at "C:...\Python\Python39\python.exe" gyp info find VS using VS2019 (16.8.30711.63) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - found VC++ toolset: v142 gyp ERR! find VS - found Windows 10 SDK (10.0.19041.0) gyp info find VS run with --verbose for detailed information gyp info spawn C:...\Python\Python39\python.exe gyp info spawn args [ gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\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:\Projects\tmp\hyper-transparent\electron-vibrancy\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\..\AppData\Local\node-gyp\Cache\15.1.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:\..\AppData\Local\node-gyp\Cache\15.1.0', gyp info spawn args '-Dnode_gyp_dir=C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\\..\\AppData\\Local\\node-gyp\\Cache\\15.1.0\\<(target_arch)\\node.lib', gyp info spawn args '-Dmodule_root_dir=C:\Projects\tmp\hyper-transparent\electron-vibrancy', 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:\Projects\tmp\hyper-transparent\electron-vibrancy\build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe gyp info spawn args [ gyp info spawn args 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' gyp info spawn args ] Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen. Vibrancy.cc C:\Projects\tmp\hyper-transparent\electron-vibrancy\src\Vibrancy.cc(86,57): error C2660: "v8::Value::BooleanValue": Funktion akzeptiert keine 0 Argumente [C:\Projects\tmp\hyper-transpare nt\electron-vibrancy\build\Vibrancy.vcxproj] C:\Users\lochmar\AppData\Local\node-gyp\Cache\15.1.0\include\node\v8.h(2904,8): message : Siehe Deklaration von "v8::Value::BooleanValue" [C:\Projects\tmp\hyper-transparent\electron-vibr ancy\build\Vibrancy.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:327:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! not ok npm ERR! code 1 npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c "node-gyp rebuild"

</details>

marmelin avatar Nov 18 '20 14:11 marmelin

Same error with Windows 10 SDK (10.0.18362.0) & Windows 10 SDK (10.0.17763.0)

marmelin avatar Nov 20 '20 07:11 marmelin

Do I need to compile it with VS2017 or earlier?

marmelin avatar Nov 27 '20 11:11 marmelin

Could you try: npm install --global windows-build-tools

danielehrhardt avatar Dec 12 '20 17:12 danielehrhardt

You need to install node version v6.17.1. I used nvm to switch without uninstalling my current version of node. If your on Mac you also need to install libstdc++ which you can get by downloading the files from here: https://github.com/miaozhang9/libstdc

AydanGaite avatar Dec 17 '20 17:12 AydanGaite

I'm also having problems installing on Windows 10.

node_modules\electron-vibrancy\src\Vibrancy.cc(86,57): error C2660: 'v8::Value
::BooleanValue': function does not take 0 arguments [D:\Documents\Coding\GitHub\sveltelectron\node_modules\electron-vib
rancy\build\Vibrancy.vcxproj]

EriKWDev avatar Jan 13 '21 10:01 EriKWDev

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

@DrunkWinter 404 Page Not Found.

ttqftech avatar Jul 03 '21 10:07 ttqftech

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

I am also interested.

danielehrhardt avatar Jul 03 '21 11:07 danielehrhardt

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

@DrunkWinter 404 Page Not Found.

Fixed in my fork along with a cleanup, package updates and improvements. https://github.com/DrunkWinter/electron-vibrancy

I am also interested.

@danielehrhardt @ttqftech I deleted the fork, because I noticed there was no real demand for it.

Is there any particular reason why this: https://github.com/Seo-Rii/electron-acrylic-window from Seo-Rii is not good enough of a replacement?

If there is a good reason, I might consider putting it back up.

extremely slow when drag.

diegozhu avatar Aug 05 '21 06:08 diegozhu

Installing visual studio build tools will allow you to override the system and install the module manually. Give that a try. After that try installing with --force or -g for global

arnavxjain avatar Feb 22 '22 04:02 arnavxjain