NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.62k stars 13.77k forks source link

Build failure: nodePackages.webtorrent-cli #321300

Open samueltardieu opened 3 months ago

samueltardieu commented 3 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build nodePackages.webtorrent-cli

Build log

Cf. the full log.

npm ERR! code 1
npm ERR! path /nix/store/swz0bgghdfa6h8dmrzlprv1sjihnhf8a-webtorrent-cli-5.1.0/lib/node_modules/webtorrent-cli/node_modules/node-datachannel
npm ERR! command failed
npm ERR! command sh -c prebuild-install -r napi || (npm install --ignore-scripts --production=false && npm run _prebuild)
npm ERR! prebuild-install warn install getaddrinfo EAI_AGAIN github.com
npm ERR! npm WARN config production Use `--omit=dev` instead.
npm ERR! npm ERR! code ENOTCACHED
npm ERR! npm ERR! request to https://registry.npmjs.org/prebuild-install failed: cache mode is 'only-if-cached' but no cached response is available.
npm ERR! 

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.11 (Vicuna), 24.11.20240613.e9ee548`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos, nixos-hardware"`
 - nixpkgs: `/home/sam/.nix-defexpr/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

Ate329 commented 3 months ago

yes I had the same issue.

SuperSandro2000 commented 3 months ago

It seems like the package tries to download additional things while building. When providing a patch please consider converting the package to buildNpmPackage