Nix NodeJS | 187 Members | |
| 55 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Sep 2025 | ||
prisma-language-server would be my suggestion | 09:05:51 | |
| https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#:~:text=It%20should%20be%20identical%20to%20the%20upstream%20package%20name. | 09:06:20 | |
| oh yeah thats not a hard requirement | 09:08:39 | |
| sweet | 09:08:58 | |
| would anyone here happen to have encountered this error before: > npm error code ENOTCACHED > npm error request to https://registry.npmjs.org/universal-user-agent failed: cache mode is 'only-if-cached' but no cached response is available. > npm error A complete log of this run can be found in: /build/cache/_logs/2025-09-18T09_38_35_036Z-debug-0.log | 09:39:19 | |
| here is my package.nix as it is:
| 09:39:35 | |
| yes their lockfile is broken | 09:41:30 | |
| thats an issue which has been known for years now and npm doesn't consider it a bug | 09:41:51 | |
| exciting. | 09:42:07 | |
| would maybe going to an older revision help? | 09:42:12 | |
| where the lockfile isn't broken | 09:42:16 | |
| probably not | 09:42:25 | |
you need to clone the repo, delete package-lock.json and run npm install --package-lock-only | 09:42:56 | |
| and use that one in your nix package | 09:43:02 | |
| okay will get on it | 09:43:14 | |
| there should be examples of this in nixpkgs already | 09:43:20 | |
| examples of what? using a different lockfile? | 09:43:38 | |
| yes, providing your own lockfile | 09:43:47 | |
| ah okay, would this parameter help at all: fetchNpmDeps? | 09:44:25 | |
| https://github.com/NixOS/nixpkgs/blob/10a275e22017a6c9bf3a38dbdcf504daa36f51c7/pkgs/by-name/in/intelephense/package.nix#L19 | 09:44:37 | |
| no, buildNpmPackage already uses that | 09:44:58 | |
| ahhh okay | 09:44:59 | |
| should I put a comment or something explaing why I did that or is it implied | 09:45:11 | |
| * should I put a comment or something explaining why I did that or is it implied | 09:45:16 | |
| comment is a good idea | 09:45:33 | |
| thank you for your help so far Marie! | 09:45:53 | |
| I got the new package-lock.json but I'm still getting that error:
with my package.nix:
| 10:23:07 | |
| did you update npmDepsHash? | 10:38:01 | |
| yep | 10:38:57 | |
| but it's the same as here, no? | 10:39:45 | |