!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

211 Members
62 Servers

Load older messages


SenderMessageTime
1 Aug 2023
@hexa:lossy.networkhexayes11:38:38
@gdamjan:spodeli.orggdamjanhttps://github.com/NixOS/nixpkgs/pull/24655411:58:57
@robert:funklause.dedotlambda Do we want to support npm-shrinkwrap.json in buildNpmPackage? 16:01:49
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
Do we want to support npm-shrinkwrap.json in buildNpmPackage?
If someone wants to write it. Right now it's not on our radar though
16:03:53
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
If someone wants to write it. Right now it's not on our radar though
Doesn't it have the exact same syntax? So it would just require checking which of the two files is present
16:04:25
@lily:lily.flowersLily FosterAre you interested in adding more of this stuff? Do you want to join the nixpkgs node.js team?16:04:41
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
Doesn't it have the exact same syntax? So it would just require checking which of the two files is present
Hmm yeah I think it might be. I'll have to double check
16:04:57
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
Are you interested in adding more of this stuff? Do you want to join the nixpkgs node.js team?
Not really, I don't actually know Node.js :D
16:05:06
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
Not really, I don't actually know Node.js :D
Hey, neither did I when I joined 🙃
16:06:28
@lily:lily.flowersLily Foster(I'm only partly joking in that too...)16:06:47
@lily:lily.flowersLily Foster(I'd used it but I was not familiar with a lot of npm behavior or cache or lock formats or anything)16:07:28
@lily:lily.flowersLily Foster(Apologies if offering was a bit too forward, I just want more people to collab with 😅)16:08:06
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
(Apologies if offering was a bit too forward, I just want more people to collab with 😅)
No worries at all. Very understandable
16:20:02
@raitobezarius:matrix.orgraitobezarius
In reply to @lily:lily.flowers
(Apologies if offering was a bit too forward, I just want more people to collab with 😅)
(I definitely think this is the right approach ; apologies I'm not sending PRs yet… It's very much on my todolist)
16:22:37
@lily:lily.flowersLily Foster
In reply to @raitobezarius:matrix.org
(I definitely think this is the right approach ; apologies I'm not sending PRs yet… It's very much on my todolist)
(It's okay, I always appreciate however much or little you're able to do ❤️)
16:28:08
2 Aug 2023
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
Yeah I figured if they were using lerna you'd run into issues with intra-repo dependencies. Which lerna does custom handling for :/
I was thinking about trying to merge all lockfiles into one. Does someone know a tool for merging multiple JSON files into one with recursive merging and a specified file taking precedence in case of conflicts?
06:00:15
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
I was thinking about trying to merge all lockfiles into one. Does someone know a tool for merging multiple JSON files into one with recursive merging and a specified file taking precedence in case of conflicts?
jq
10:26:46
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
jq
Nice, didn't know jq could do this
14:49:15
@lily:lily.flowersLily FosterJq can do anything, if you can manage to wrap your head around it's sometimes-painful expression language...15:17:21
@lily:lily.flowersLily Foster* Jq can do anything, if you can manage to wrap your head around its sometimes-painful expression language...15:17:28
@hexa:lossy.networkhexaas good a time as any to mention https://github.com/wader/jqjq15:22:06
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
as good a time as any to mention https://github.com/wader/jqjq
Thanks, I hate it
15:24:26
@hexa:lossy.networkhexame too15:24:32
@robert:funklause.dedotlambda Lily Foster: Care to ake a look at why I get ENOTCACHED building pyright from https://github.com/dotlambda/nixpkgs/tree/pyright-buildNpmPackage ? 15:30:52
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
Lily Foster: Care to ake a look at why I get ENOTCACHED building pyright from https://github.com/dotlambda/nixpkgs/tree/pyright-buildNpmPackage ?
I'm at $dayjob at the moment, but if you add npmFlags = [ "--verbose" ] and share the log I'll take a look from my phone
15:32:40
@robert:funklause.dedotlambda
Installing dependencies
npm verb cli /nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/bin/node /nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/bin/npm
npm info using npm@9.5.1
npm info using node@v18.16.1
npm verb logfile could not create logs-dir: Error: EACCES: permission denied, mkdir '/nix/store/kmy4mn43nbf0l1drr80yjhrqvadp1n3f-pyright-1.1.320-npm-deps/_logs'
npm verb title npm ci
npm verb argv "ci" "--ignore-scripts" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/nix/store/kmy4mn43nbf0l1drr80yjhrqvadp1n3f-pyright-1.1.320-npm-deps/_logs/2023-08-02T15_33_17_652Z-
npm verb logfile could not be created: Error: ENOENT: no such file or directory, open '/nix/store/kmy4mn43nbf0l1drr80yjhrqvadp1n3f-pyright-1.1.320-npm-deps/_logs/2023-08-02T15_33_17_652Z-debug-0.log'
npm verb logfile no logfile created
npm verb stack Error: request to https://registry.npmjs.org/@types%2fyargs failed: cache mode is 'only-if-cached' but no cached response is available.
npm verb stack     at cacheFetch (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/index.js:12:13)
npm verb stack     at async fetch (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/make-fetch-happen/lib/fetch.js:98:7)
npm verb stack     at async RegistryFetcher.packument (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/pacote/lib/registry.js:87:19)
npm verb stack     at async RegistryFetcher.manifest (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:23)
npm verb stack     at async [nodeFromEdge] (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1059:19)
npm verb stack     at async [buildDepStep] (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:929:11)
npm verb stack     at async Arborist.buildIdealTree (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:207:7)
npm verb stack     at async CI.exec (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/lib/commands/ci.js:48:5)
npm verb stack     at async module.exports (/nix/store/y85811fai07h16xqwh99wnql0cwgb17c-nodejs-18.16.1/lib/node_modules/npm/lib/cli.js:134:5)
npm verb cwd /build/source
npm verb Linux 6.3.13
npm verb node v18.16.1
npm verb npm  v9.5.1
npm ERR! code ENOTCACHED
npm ERR! request to https://registry.npmjs.org/@types%2fyargs failed: cache mode is 'only-if-cached' but no cached response is available.
npm verb exit 1
npm verb code 1

npm ERR! Log files were not written due to an error writing to the directory: /nix/store/kmy4mn43nbf0l1drr80yjhrqvadp1n3f-pyright-1.1.320-npm-deps/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies
15:34:33
@robert:funklause.dedotlambda

But there is a file mentioning @types/yargs:

$ cat /nix/store/kmy4mn43nbf0l1drr80yjhrqvadp1n3f-pyright-1.1.320-npm-deps/_cacache/index-v5/00/c3/753c99c26c1872db70a80f1970989d3ed4a77816369c2975135cb643ce90
1:d3538f2b021a174a7de18bb1294c6ac1496fcb97	{"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz","integrity":"sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==","time":0,"size":14450,"metadata":{"url":"https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz","options":{"compress":true}}}
15:35:49
@robert:funklause.dedotlambda *

But there is a file mentioning @types/yargs:

$ cat /nix/store/kmy4mn43nbf0l1drr80yjhrqvadp1n3f-pyright-1.1.320-npm-deps/_cacache/index-v5/00/c3/753c99c26c1872db70a80f1970989d3ed4a77816369c2975135cb643ce90
d3538f2b021a174a7de18bb1294c6ac1496fcb97	{"key":"make-fetch-happen:request-cache:https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz","integrity":"sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==","time":0,"size":14450,"metadata":{"url":"https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz","options":{"compress":true}}}
15:36:46
@lily:lily.flowersLily FosterCan you share the lockfile and package.json too?15:37:34
@lily:lily.flowersLily Foster(Preferably links)15:37:40

Show newer messages


Back to Room ListRoom Version: 6