Closed ianclarke1422 closed 4 years ago
I had a similar issue. It appears ref isn't compatible with the latest node.js versions. Downgrading to node.js v10.17.0 fixed the issue for me.
Wahoo! Thank you so much for the quick reply/help. Installing the older version did the trick. Although, I find it bothersome that I'm forced to use an older version of node.js.....but that is another issue for another day. Thanks again, much appreciated.
Any idea why the following occurs (I have trimmed the actual output for brevity - but there are many more errors similar to below)?
PS D:\work\GitRepos\arc_electron> npm install ref
D:\work\GitRepos\arc_electron\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Users\ian.clarke\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\ian.clarke\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. binding.cc win_delay_load_hook.cc D:\work\GitRepos\arc_electron\node_modules\ref\src\binding.cc(222,43): error C2661: 'v8::Value::BooleanValue': no overloaded function takes 0 arguments [D:\work\GitRepos\arc_electron\node_modules\ref\build\binding.vcxproj] D:\work\GitRepos\arc_electron\node_modules\ref\src\binding.cc(253,38): error C2660: 'v8::Value::Uint32Value': function does not take 0 arguments [D:\work\GitRepos\arc_electron\node_modules\ref\build\binding.vcxproj] C:\Users\ian.clarke\AppData\Local\node-gyp\Cache\12.13.0\include\node\v8.h(2611,41): message : see declaration of 'v8::Value::Uint32Value' (compiling source file ..\src\binding.cc) [D:\work\GitRepos\arc_electron\node_modules\ ref\build\binding.vcxproj] D:\work\GitRepos\arc_electron\node_modules\ref\src\binding.cc(360,31): error C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Local' to 'const v8::String
::Utf8Value &' [D:\work\GitRepos\arc_electron\node_modules\ref\build\binding.vcxproj]
D:\work\GitRepos\arc_electron\node_modules\ref\src\binding.cc(360,31): message : Reason: cannot convert from 'v8::Local' to 'const v8::String::Utf8Value' [D:\work\GitRepos\arc_electron\node_modules\ref\build\bindin