Description
openedon Mar 14, 2023
I am trying to install dolos via npm on MacOSX. All node related libraries should be uptodate
$ node --version
v19.7.0
But I receive the error below. I googled around to see whether there is an easy fix. It looks like that there is a deprecation issue with electron 20 (WiseLibs/better-sqlite3#858). Unfortunately any suggested solution did work for me.
Any ideas?
Christian
npm install @dodona/dolos
npm ERR! code 1
npm ERR! path /Users/cu/tmp/node_modules/tree-sitter
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
...
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/logger.cc:44:21: error: no member named 'CreationContext' in 'v8::Function'
npm ERR! Nan::Call(fn, fn->CreationContext()->Global(), 3, argv);
npm ERR! ~~~~^
npm ERR! ../src/logger.cc:51:62: error: no member named 'CreationContext' in 'v8::Function'
npm ERR! Local console = Local::Cast(Nan::Get(fn->CreationContext()->Global(), Nan::New("console").ToLocalChecked()).ToLocalChecked());
2 errors generated.
npm ERR! make: *** [Release/obj.target/tree_sitter_runtime_binding/src/logger.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make
failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.3.0