Closed simonacca closed 5 months ago
$ npm i -D https://github.com/Isopod/tree-sitter-pascal/tree/v0.9.1 (#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠦ reify:tree-sitter-pascal: sill audit bulk request { 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! > tree-sitter-pascal@0.9.1 install npm ERR! > node-gyp rebuild npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@20.12.2 | darwin | arm64 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! gyp info spawn /opt/homebrew/opt/python@3.12/bin/python3.12 npm ERR! gyp info spawn args [ 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! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/simon/.npm/_cacache/tmp/git-cloneqolYqwlzImYk/build/config.gypi', npm ERR! gyp info spawn args '-I', 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! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/simon/Library/Caches/node-gyp/20.12.2/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/simon/Library/Caches/node-gyp/20.12.2', 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! gyp info spawn args '-Dnode_lib_file=/Users/simon/Library/Caches/node-gyp/20.12.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/simon/.npm/_cacache/tmp/git-cloneqolYqwlzImYk', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! node:internal/modules/cjs/loader:1146 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'nan' npm ERR! Require stack: npm ERR! - /Users/simon/.npm/_cacache/tmp/git-cloneqolYqwlzImYk/[eval] npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15) npm ERR! at Module._load (node:internal/modules/cjs/loader:984:27) npm ERR! at Module.require (node:internal/modules/cjs/loader:1231:19) npm ERR! at require (node:internal/modules/helpers:179:18) npm ERR! at [eval]:1:1 npm ERR! at runScriptInThisContext (node:internal/vm:209:10) npm ERR! at node:internal/process/execution:109:14 npm ERR! at [eval]-wrapper:6:24 npm ERR! at runScript (node:internal/process/execution:92:62) npm ERR! at evalScript (node:internal/process/execution:123:10) { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [ '/Users/simon/.npm/_cacache/tmp/git-cloneqolYqwlzImYk/[eval]' ] npm ERR! } npm ERR! npm ERR! Node.js v20.12.2 npm ERR! gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/9zli090ri6wlhjla6bb51dg326ann92x-nodejs-20.12.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Darwin 23.4.0 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! gyp ERR! cwd /Users/simon/.npm/_cacache/tmp/git-cloneqolYqwlzImYk npm ERR! gyp ERR! node -v v20.12.2 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok npm ERR! npm ERR! code 1 npm ERR! npm ERR! path /Users/simon/.npm/_cacache/tmp/git-cloneqolYqwlzImYk npm ERR! npm ERR! command failed npm ERR! npm ERR! command sh -c node-gyp rebuild npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: /Users/simon/.npm/_logs/2024-04-25T22_28_02_414Z-debug-0.log npm ERR! A complete log of this run can be found in: /Users/simon/.npm/_logs/2024-04-25T22_27_59_301Z-debug-0.log
Closing without a solution for now, happy to reopen if somebody needs this