Open ZedThree opened 1 month ago
I'm still running into this. It looks like the immediate source of the error is this:
npm error gyp info spawn args '/usr/lib64/node_modules/npm22/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '/usr/lib64/node_modules/npm22/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
It's somehow ended up duplicating the first two args, which means it's trying to use gyp_main.py
as a build file, which obviously won't work.
I noticed that if I run node-gyp build
directly, it works, but it fails as part of npm update
Verbose output (from npm or node-gyp):
``` npm verbose cli /usr/bin/node22 /usr/bin/npm22 npm info using npm@10.8.1 npm info using node@v22.3.0 npm verbose title npm install npm verbose argv "--loglevel" "verbose" "install" npm verbose logfile logs-max:10 dir:/home/peter/.npm/_logs/2024-09-27T13_12_29_014Z- npm verbose logfile /home/peter/.npm/_logs/2024-09-27T13_12_29_014Z-debug-0.log npm verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 136ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/node-gyp-build 30ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/prebuildify 696ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/npm-run-path 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/pump 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/node-abi 16ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 18ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tar-fs 18ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/minimist 22ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/once 18ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tar-stream 18ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/path-key 39ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/semver 65ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/chownr 94ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/wrappy 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bl 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/inherits 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/readable-stream 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fs-constants 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/buffer 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/string_decoder 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/base64-js 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ieee754 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 2ms (cache hit) npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 184ms npm http fetch GET 200 https://codeload.github.com/stadelmanma/tree-sitter-fortran/tar.gz/4a593dda9cbc050a6686187249f8350ceea292ce 228ms (cache revalidated) npm verbose stack Error: git dep preparation failed npm verbose stack at promiseSpawn (/usr/lib64/node_modules/npm22/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at module.exports (/usr/lib64/node_modules/npm22/node_modules/pacote/lib/util/npm.js:13:10) npm verbose stack at /usr/lib64/node_modules/npm22/node_modules/pacote/lib/git.js:183:14 npm verbose stack at async withTempDir (/usr/lib64/node_modules/npm22/node_modules/@npmcli/fs/lib/with-temp-dir.js:21:14) npm error code 1 npm error git dep preparation failed npm error command /usr/bin/node22 /usr/lib64/node_modules/npm22/bin/npm-cli.js install --force --cache=/home/peter/.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 error > tree-sitter-fortran@0.1.0 install npm error > node-gyp-build npm error npm verbose cli /usr/bin/node22 /usr/lib64/node_modules/npm22/bin/npm-cli.js npm error npm info using npm@10.8.1 npm error npm info using node@v22.3.0 npm error npm verbose title npm install npm error npm verbose argv "install" "--force" "--cache" "/home/peter/.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 error npm verbose logfile logs-max:10 dir:/home/peter/.npm/_logs/2024-09-27T13_12_31_924Z- npm error npm verbose logfile /home/peter/.npm/_logs/2024-09-27T13_12_31_924Z-debug-0.log npm error npm warn using --force Recommended protections disabled. npm error npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 14ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/node-gyp-build 5ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/prebuildify 3ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 7ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/node-abi 8ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/npm-run-path 10ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/tar-fs 11ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/pump 13ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 7ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/chownr 8ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/tar-stream 9ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/readable-stream 4ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/fs-constants 8ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/bl 8ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 5ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/string_decoder 6ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/buffer 8ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/ieee754 3ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/base64-js 4ms (cache hit) npm error npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 2ms (cache hit) npm error npm info run tree-sitter-cli@0.20.7 install node_modules/tree-sitter-cli node install.js npm error npm info run tree-sitter-cli@0.20.7 install { code: 0, signal: null } npm error /home/peter/.npm/_cacache/tmp/git-cloneXXXXXX53FbOa/node_modules/node-gyp-build/node-gyp-build.js:60 npm error throw new Error('No native build was found for ' + target + '\n loaded from: ' + dir + '\n') npm error ^ npm error npm error Error: No native build was found for platform=linux arch=x64 runtime=node abi=127 uv=1 libc=glibc node=22.3.0 npm error loaded from: /home/peter/.npm/_cacache/tmp/git-cloneXXXXXX53FbOa npm error npm error at load.resolve.load.path (/home/peter/.npm/_cacache/tmp/git-cloneXXXXXX53FbOa/node_modules/node-gyp-build/node-gyp-build.js:60:9) npm error at load (/home/peter/.npm/_cacache/tmp/git-cloneXXXXXX53FbOa/node_modules/node-gyp-build/node-gyp-build.js:22:30) npm error at Object.I'm getting a very confusing error trying to install a package from GitHub, verbose output above, but I see this in the middle of it:
Now obviously that's completely valid Python, so something else is going on -- but I have no idea where to even begin