{"id":19589626,"url":"https://github.com/flolu/rules-js-node-gyp-error","last_synced_at":"2025-07-20T17:34:55.978Z","repository":{"id":119944432,"uuid":"572668535","full_name":"flolu/rules-js-node-gyp-error","owner":"flolu","description":"rules_js node-gyp command not found when installing testcontainers","archived":false,"fork":false,"pushed_at":"2022-11-30T19:21:59.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-09T06:28:30.266Z","etag":null,"topics":["bazel","rules-js","rules-ts","testcontainers"],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flolu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-30T19:15:04.000Z","updated_at":"2022-11-30T19:22:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c005d6aa-52d9-4c63-96dd-6dafd58a851a","html_url":"https://github.com/flolu/rules-js-node-gyp-error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Frules-js-node-gyp-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Frules-js-node-gyp-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Frules-js-node-gyp-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Frules-js-node-gyp-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flolu","download_url":"https://codeload.github.com/flolu/rules-js-node-gyp-error/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240860452,"owners_count":19869335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","rules-js","rules-ts","testcontainers"],"created_at":"2024-11-11T08:19:59.098Z","updated_at":"2025-02-26T13:26:32.951Z","avatar_url":"https://github.com/flolu.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003enode-gyp command not found\u003c/h1\u003e\n  \u003cp\u003erules_js fails to build when adding testcontainers as a dependency\u003c/p\u003e\n\u003c/div\u003e\n\n# Reproduction\n\n**Requirements**\n\n- Node.js\n- pnpm (`npm install -g pnpm`)\n- Bazelisk (`npm install -g @bazel/bazelisk`)\n\n**Setup**\n\n- `pnpm i` (Install Node dependencies)\n\n**Error**\n\n- `bazelisk run //:bin` (Run app)\n\n  ```\n  INFO: Analyzed target //:bin (0 packages loaded, 0 targets configured).\n  INFO: Found 1 target...\n  ERROR: /home/flolu/Desktop/rules-js-node-gyp-error/BUILD.bazel:20:22: Running lifecycle hooks on npm package cpu-features@0.0.4 failed: (Exit 1): lifecycle-hooks.sh failed: error executing command (from target //:.aspect_rules_js/node_modules/cpu-features@0.0.4/lc) bazel-out/k8-opt-exec-2B5CBBC6/bin/external/aspect_rules_js/npm/private/lifecycle/lifecycle-hooks.sh cpu-features ../../../external/npm__cpu-features__0.0.4/package ... (remaining 1 argument skipped)\n  /home/flolu/.cache/bazel/_bazel_flolu/8f204a9bf8f980884283ff5b6ddf7d91/execroot/__main__/bazel-out/k8-fastbuild/bin/external/aspect_rules_js/npm/private/lifecycle/min/node-gyp-bin/node-gyp: line 5: 1010: command not found\n  Error: cpu-features@0.0.4 install: `node buildcheck.js \u003e buildcheck.gypi \u0026\u0026 node-gyp rebuild`\n  spawn ENOENT\n      at ChildProcess.\u003canonymous\u003e (/home/flolu/.cache/bazel/_bazel_flolu/8f204a9bf8f980884283ff5b6ddf7d91/execroot/__main__/bazel-out/k8-fastbuild/bin/external/aspect_rules_js/npm/private/lifecycle/min/index.min.js:1:79716)\n      at ChildProcess.emit (node:events:394:28)\n      at maybeClose (node:internal/child_process:1064:16)\n      at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {\n    code: 'ELIFECYCLE',\n    errno: 'ENOENT',\n    syscall: 'spawn',\n    file: 'sh',\n    pkgid: 'cpu-features@0.0.4',\n    stage: 'install',\n    script: 'node buildcheck.js \u003e buildcheck.gypi \u0026\u0026 node-gyp rebuild',\n    pkgname: 'cpu-features'\n  }\n\n  \u003e cpu-features@0.0.4 install /home/flolu/.cache/bazel/_bazel_flolu/8f204a9bf8f980884283ff5b6ddf7d91/execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/cpu-features@0.0.4/node_modules/cpu-features\n  \u003e node buildcheck.js \u003e buildcheck.gypi \u0026\u0026 node-gyp rebuild\n\n  Target //:bin failed to build\n  Use --verbose_failures to see the command lines of failed build steps.\n  INFO: Elapsed time: 0.374s, Critical Path: 0.24s\n  INFO: 4 processes: 2 internal, 1 linux-sandbox, 1 local.\n  FAILED: Build did NOT complete successfully\n  ERROR: Build failed. Not running target\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflolu%2Frules-js-node-gyp-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflolu%2Frules-js-node-gyp-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflolu%2Frules-js-node-gyp-error/lists"}