Skip to content

Installation failure with tree-sitter for Node 19: no member named Creationcontext #1073

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions