Closed simonacca closed 5 months ago
$ npm i -D https://github.com/ikatyang/tree-sitter-vue/tree/v0.2.1 npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command /nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/bin/node /nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/simon/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue npm ERR! npm WARN deprecated stringify-package@1.0.0: This module is not used anymore, and has been replaced by @npmcli/package-json npm ERR! npm WARN deprecated standard-version@7.0.0: standard-version is deprecated. If you're a GitHub user, I recommend https://github.com/googleapis/release-please as an alternative. npm ERR! npm ERR! code 1 npm ERR! npm ERR! path /Users/simon/.npm/_cacache/tmp/git-cloneQqMYxQF4UpI1/node_modules/tree-sitter-html npm ERR! npm ERR! command failed npm ERR! npm ERR! command sh -c node-gyp rebuild npm ERR! npm ERR! make: Entering directory '/Users/simon/.npm/_cacache/tmp/git-cloneQqMYxQF4UpI1/node_modules/tree-sitter-html/build' npm ERR! npm ERR! CC(target) Release/obj.target/tree_sitter_html_binding/src/parser.o npm ERR! npm ERR! CXX(target) Release/obj.target/tree_sitter_html_binding/src/scanner.o npm ERR! npm ERR! CXX(target) Release/obj.target/tree_sitter_html_binding/bindings/node/binding.o npm ERR! npm ERR! make: Leaving directory '/Users/simon/.npm/_cacache/tmp/git-cloneQqMYxQF4UpI1/node_modules/tree-sitter-html/build' npm ERR! npm ERR! gyp info it worked if it ends with ok npm ERR! npm ERR! gyp info using node-gyp@10.0.1 npm ERR! npm ERR! gyp info using node@20.12.2 | darwin | arm64 npm ERR! npm ERR! gyp info find Python using Python version 3.12.3 found at "/opt/homebrew/opt/python@3.12/bin/python3.12" npm ERR! npm ERR! gyp info spawn /opt/homebrew/opt/python@3.12/bin/python3.12 npm ERR! npm ERR! gyp info spawn args [ npm ERR! npm ERR! gyp info spawn args '/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! npm ERR! gyp info spawn args 'binding.gyp', npm ERR! npm ERR! gyp info spawn args '-f', npm ERR! npm ERR! gyp info spawn args 'make', npm ERR! npm ERR! gyp info spawn args '-I', npm ERR! npm ERR! gyp info spawn args '/Users/simon/.npm/_cacache/tmp/git-cloneQqMYxQF4UpI1/node_modules/tree-sitter-html/build/config.gypi', npm ERR! npm ERR! gyp info spawn args '-I', npm ERR! npm ERR! gyp info spawn args '/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! npm ERR! gyp info spawn args '-I', npm ERR! npm ERR! gyp info spawn args '/Users/simon/Library/Caches/node-gyp/20.12.2/include/node/common.gypi', npm ERR! npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/simon/Library/Caches/node-gyp/20.12.2', npm ERR! npm ERR! gyp info spawn args '-Dnode_gyp_dir=/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/node_modules/node-gyp', npm ERR! npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/simon/Library/Caches/node-gyp/20.12.2/<(target_arch)/node.lib', npm ERR! npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/simon/.npm/_cacache/tmp/git-cloneQqMYxQF4UpI1/node_modules/tree-sitter-html', npm ERR! npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! npm ERR! gyp info spawn args '--depth=.', npm ERR! npm ERR! gyp info spawn args '--no-parallel', npm ERR! npm ERR! gyp info spawn args '--generator-output', npm ERR! npm ERR! gyp info spawn args 'build', npm ERR! npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! npm ERR! gyp info spawn args ] npm ERR! npm ERR! gyp info spawn make npm ERR! npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! npm ERR! In file included from ../bindings/node/binding.cc:3: npm ERR! npm ERR! In file included from ../../nan/nan.h:174: npm ERR! npm ERR! ../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8' npm ERR! npm ERR! typedef v8::Local<v8::AccessorSignature> Sig; npm ERR! npm ERR! ~~~~^ npm ERR! npm ERR! In file included from ../bindings/node/binding.cc:3: npm ERR! npm ERR! ../../nan/nan.h:2536:8: error: no matching member function for call to 'SetAccessor' npm ERR! npm ERR! tpl->SetAccessor( npm ERR! npm ERR! ~~~~~^~~~~~~~~~~ npm ERR! npm ERR! /Users/simon/Library/Caches/node-gyp/20.12.2/include/node/v8-template.h:816:8: note: candidate function not viable: no known conversion from 'imp::Sig' (aka 'int') to 'SideEffectType' for 7th argument npm ERR! npm ERR! void SetAccessor( npm ERR! npm ERR! ^ npm ERR! npm ERR! /Users/simon/Library/Caches/node-gyp/20.12.2/include/node/v8-template.h:809:8: note: candidate function not viable: no known conversion from 'imp::NativeGetter' (aka 'void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &)') to 'AccessorGetterCallback' (aka 'void (*)(Local<String>, const PropertyCallbackInfo<Value> &)') for 2nd argument npm ERR! npm ERR! void SetAccessor( npm ERR! npm ERR! ^ npm ERR! npm ERR! In file included from ../bindings/node/binding.cc:3: npm ERR! npm ERR! In file included from ../../nan/nan.h:2884: npm ERR! npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer' npm ERR! npm ERR! data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset; npm ERR! npm ERR! ~~~~~~~~^ npm ERR! npm ERR! 3 errors generated. npm ERR! npm ERR! make: *** [tree_sitter_html_binding.target.mk:128: Release/obj.target/tree_sitter_html_binding/bindings/node/binding.o] Error 1 npm ERR! npm ERR! gyp ERR! build error npm ERR! npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm ERR! npm ERR! gyp ERR! System Darwin 23.4.0 npm ERR! npm ERR! gyp ERR! command "/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/bin/node" "/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! npm ERR! gyp ERR! cwd /Users/simon/.npm/_cacache/tmp/git-cloneQqMYxQF4UpI1/node_modules/tree-sitter-html npm ERR! npm ERR! gyp ERR! node -v v20.12.2 npm ERR! npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! npm ERR! gyp ERR! not ok npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: /Users/simon/.npm/_logs/2024-04-25T22_28_37_064Z-debug-0.log npm ERR! A complete log of this run can be found in: /Users/simon/.npm/_logs/2024-04-25T22_28_28_041Z-debug-0.log zsh: exit 1 npm i -D https://github.com/ikatyang/tree-sitter-vue/tree/v0.2.1
Closing without a solution for now, happy to reopen if somebody needs this