!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
59 Servers

Load older messages


SenderMessageTime
12 Nov 2023
@lily:lily.flowersLily Fosterif you try again does it still happen?16:05:30
@lily:lily.flowersLily Fosterthat's generally a transient network issue somewhere16:05:43
@peter-lustig:matrix.orgpeter-lustigyep16:06:03
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
and is it same dep?
Same dep?
16:06:16
@peter-lustig:matrix.orgpeter-lustigi think so16:07:32
@peter-lustig:matrix.orgpeter-lustigi try rebooting16:07:38
@lily:lily.flowersLily Fosterwell i ask if it's same dep because if that one dep is from somewhere else (i.e. not npm registry) then that service may be having trouble from your location rn16:08:10
@lily:lily.flowersLily Foster you can add RUST_LOG=debug env var if you want debugging output that may narrow down where it is going when it fails. also adding --cores 1 to your nix command so that way there's no parallelism 16:09:03
@peter-lustig:matrix.orgpeter-lustig ah okay  16:09:03
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
you can add RUST_LOG=debug env var if you want debugging output that may narrow down where it is going when it fails. also adding --cores 1 to your nix command so that way there's no parallelism
(env vars for fetcher in buildNpmPackage can be added in postPatch)
16:09:17
@lily:lily.flowersLily Foster (like postPatch = "export RUST_LOG=debug") 16:09:40
@peter-lustig:matrix.orgpeter-lustig I wish there weren't these weird issues with these weird workarounds 16:10:59
@lily:lily.flowersLily Fosterthis is not a workarojnd16:11:18
@lily:lily.flowersLily Foster* this is not a workaround16:11:22
@lily:lily.flowersLily Fosteri'm saying if you want debug output you can get it like that16:11:31
@lily:lily.flowersLily Fosterit will not fix anything16:11:35
@lily:lily.flowersLily Fosterbut this is a network issue so i imagine it'll go away in a bit anyway16:12:05
@lily:lily.flowersLily Foster so you could just take a break and come back later 🤷🏻‍♀️ 16:12:29
@peter-lustig:matrix.orgpeter-lustig
In reply to @lily:lily.flowers
this is not a workaround
I mean the non parallelism with just one core, that usually works for me
16:13:51
@lily:lily.flowersLily Fosterhow do you mean "usually works" exactly?16:14:11
@lily:lily.flowersLily Fosterwe had a problem where network issues wouldn't properly be retried but that's been fixed on master for a few weeks and 23.05 for a few days16:14:40
@lily:lily.flowersLily Fosterif you think you're genuinely having issues with prefetch-npm-deps, can you please share your nixpkgs rev?16:16:00
@lily:lily.flowersLily Foster(all of them if you have multiple nixpkgs in e.g. flake inputs, even if you don't think they should be used)16:16:25
@peter-lustig:matrix.orgpeter-lustig
In reply to @lily:lily.flowers
if you think you're genuinely having issues with prefetch-npm-deps, can you please share your nixpkgs rev?
no I just experienced many little bugs over the years that were fixed and related to anything that has to do with nodejs and packaging. I guess it is just one of the weirdest things you can use on nix
16:17:57
@lily:lily.flowersLily Fosternpm is very eager to do the wrong thing, so yeah unfortunately they were often there for a while16:49:38
@lily:lily.flowersLily Fosterturning off parallelism shouldn't ever help with anything but making the logs more coherent unless your internet link gets spooked by the concurrent connections to the same domain. but even then the retry backoff logic bacisally means they will eventually be tried one at a time if that causes problems noe16:50:59
@lily:lily.flowersLily Foster* turning off parallelism shouldn't ever help with anything but making the logs more coherent unless your internet link gets spooked by the concurrent connections to the same domain. but even then the retry backoff logic bacisally means they will eventually be tried one at a time if that causes problems now16:51:02
@lily:lily.flowersLily Foster* turning off parallelism shouldn't ever help with anything but making the logs more coherent unless your internet link gets spooked by the concurrent connections to the same domain. but even then the retry backoff logic basically means they will eventually be tried one at a time if that causes problems now16:51:17
13 Nov 2023
@keiichi:matrix.org@keiichi:matrix.org

I try to build a small package.json with buildNpmPackage. I seem to deterministically (repeatdly) hit:

       > invalid type nullinvalid type nullnpm ERR! code ENOTCACHED
       > npm ERR! request to https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz failed: cache mode is 'only-if-cached' but no cached response is available.

while nix-prefetch-url https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz works fine. what could explain this specific error ?

16:57:15
@lily:lily.flowersLily Foster
In reply to @keiichi:matrix.org

I try to build a small package.json with buildNpmPackage. I seem to deterministically (repeatdly) hit:

       > invalid type nullinvalid type nullnpm ERR! code ENOTCACHED
       > npm ERR! request to https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz failed: cache mode is 'only-if-cached' but no cached response is available.

while nix-prefetch-url https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz works fine. what could explain this specific error ?

Prefetching that URL has nothing to do with npm trying to do something it shouldn't in the nix sandbox. Can you share the full lock and the package-lock.json file you are using?
16:59:01

Show newer messages


Back to Room ListRoom Version: 6