-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
flatpak-builder version
1.4.2
Linux distribution and version
Ubuntu 24.04.3
Affected flatpak-builder tool
node/flatpak-node-generator.py
flatpak-builder tool cli args
No response
Source repository URL
https://github.com/tranxuanthang/lrcget
Flatpak-builder manifest URL
Description
npm install --offline --verbose fails with:
npm http fetch GET 200 https://codeload.github.com/tranxuanthang/lrc-kit/tar.gz/8ec55ffd840679eee9021eb6bb8adefe407818fb 171ms (cache stale)
npm verbose stack Error: git dep preparation failed
npm verbose stack at promiseSpawn (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22)
npm verbose stack at module.exports (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/pacote/lib/util/npm.js:13:10)
npm verbose stack at /usr/lib/sdk/node24/lib/node_modules/npm/node_modules/pacote/lib/git.js:183:14
npm verbose stack at async withTempDir (/usr/lib/sdk/node24/lib/node_modules/npm/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/lib/sdk/node24/bin/node /usr/lib/sdk/node24/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/run/build/lrcget/flatpak-node/npm-cache --prefer-offline=false --prefer-online=false --offline=true --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm error npm verbose cli /usr/lib/sdk/node24/bin/node /usr/lib/sdk/node24/lib/node_modules/npm/bin/npm-cli.js
npm error npm info using [email protected]
npm error npm info using [email protected]
npm error npm verbose title npm install
npm error npm verbose argv "install" "--force" "--cache" "/run/build/lrcget/flatpak-node/npm-cache" "--prefer-offline" "false" "--prefer-online" "false" "--offline" "true" "--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:/run/build/lrcget/flatpak-node/npm-cache/_logs/2025-09-17T16_15_18_316Z-
npm error npm verbose logfile /run/build/lrcget/flatpak-node/npm-cache/_logs/2025-09-17T16_15_18_316Z-debug-0.log
npm error npm warn using --force Recommended protections disabled.
npm error npm verbose stack Error: request to https://registry.npmjs.org/@types%2fjest failed: cache mode is 'only-if-cached' but no cached response is available.
npm error npm verbose stack at cacheFetch (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/index.js:12:13)
npm error npm verbose stack at async fetch (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/make-fetch-happen/lib/fetch.js:98:7)
npm error npm verbose stack at async RegistryFetcher.packument (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/pacote/lib/registry.js:90:19)
npm error npm verbose stack at async RegistryFetcher.manifest (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/pacote/lib/registry.js:128:23)
npm error npm verbose stack at async #fetchManifest (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1215:20)
npm error npm verbose stack at async #nodeFromEdge (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1053:19)
npm error npm verbose stack at async #buildDepStep (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11)
npm error npm verbose stack at async Arborist.buildIdealTree (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:182:7)
npm error npm verbose stack at async Promise.all (index 1)
npm error npm verbose stack at async Arborist.reify (/usr/lib/sdk/node24/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:126:5)
npm error npm error code ENOTCACHED
npm error npm error request to https://registry.npmjs.org/@types%2fjest failed: cache mode is 'only-if-cached' but no cached response is available.
npm error npm verbose cwd /run/build/lrcget/flatpak-node/npm-cache/_cacache/tmp/git-cloneFpv5Z9
npm error npm verbose os Linux 6.11.0-1018-azure
npm error npm verbose node v24.7.0
npm error npm verbose npm v11.5.1
npm error npm verbose exit 1
npm error npm verbose code 1
npm error npm error A complete log of this run can be found in: /run/build/lrcget/flatpak-node/npm-cache/_logs/2025-09-17T16_15_18_316Z-debug-0.log
Full build log: https://github.com/guihkx/flatpak-app-lrcget/actions/runs/17803764635/job/50610234011#step:17:710 (backup)
Building the app with the yarn-generated file works fine:
Manifest: https://github.com/guihkx/flatpak-app-lrcget/blob/9c398220755e6f5d7c71fdb9fb04f05b2a7a348d/net.lrclib.lrcget.yaml
Build log: https://github.com/guihkx/flatpak-app-lrcget/actions/runs/17790584437/job/50566494808#step:17:3145 (backup)