| 10 Oct 2023 |
Pol | Find terminalizer here: https://github.com/faressoft/terminalizer | 06:27:07 |
Pol | * > Validating consistency between /build/source/package-lock.json and /nix/store/1481hlnkqx4vw8y25v60gliynk07dwla-terminalizer-0.11.0-npm-deps/package-lock.json
> Installing dependencies
> npm ERR! code ENOTCACHED
> npm ERR! request to https://registry.npmjs.org/yallist failed: cache mode is 'only-if-cached' but no cached response is available.
>
> npm ERR! Log files were not written due to an error writing to the directory: /nix/store/1481hlnkqx4vw8y25v60gliynk07dwla-terminalizer-0.11.0-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
>
> Here are a few things you can try, depending on the error:
| 06:34:53 |
Pol | I finally switched to asciinema but it would be nice to have Terminalizer as well :) | 08:02:37 |
Lily Foster | In reply to @drupol:matrix.org Find terminalizer here: https://github.com/faressoft/terminalizer Busted upstream lockfile. Yallist is missing integrity/resolved fields :( | 10:29:35 |
Lily Foster | I do still have a half-written local branch to refactor lockfile fixup enough for allowing injecting that info, but I've been too preoccupied for the last month or two fixing stuff to finish that | 10:30:26 |
Lily Foster | I found this the other day if you wanted to PR to upstream a fixed lockfile: https://github.com/jeslie0/npm-lockfile-fix (and you could then fetchpatch it just fine) | 10:33:35 |
Pol | Thanks :) I'll might probably open a PR against the upstream project | 11:42:04 |
Marie | Lily Foster: i ran some tests over night, 1000 runs without a failure | 11:55:25 |
Lily Foster | Lovely. I'll bug someone to review+merge the PR probably today or tomorrow | 11:56:01 |
Lily Foster | Although I did have one tweak i wanted to do to the function name to indicate it's slightly different purpose now | 11:56:50 |
Lily Foster | So i'll probably push that (mostly cosmetic/semantic) change later today | 11:57:07 |
| 11 Oct 2023 |
| Cu3PO42 joined the room. | 12:37:08 |
| @ThorHop:matrix.org joined the room. | 12:38:38 |
| dukeofcool199 joined the room. | 14:25:16 |
| I use NixOS btw joined the room. | 20:37:18 |
| 12 Oct 2023 |
| Linus changed their profile picture. | 07:57:03 |
I use NixOS btw | Making progress with mkYarnPackage, but now I'm stuck with a dir deps not existing, everything builds and this error seems to occur in the install phase which is confusing:
ahbk on main [✘!?] ❯ nix build
warning: Git tree '/home/frans/Desktop/ahbk' is dirty
error: builder for '/nix/store/xr0zjg6cqq893rygyxwacaqqxzay5vzw-ahbk-web.drv' failed with exit code 1;
last 10 log lines:
> .svelte-kit/output/server/index.js 90.08 kB
>
> Run npm run preview to preview your production build locally.
>
> > Using @sveltejs/adapter-node
> ✔ done
> ✓ built in 4.80s
Done in 6.05s.
> installing
> mv: cannot stat 'deps': No such file or directory
For full logs, run 'nix log /nix/store/xr0zjg6cqq893rygyxwacaqqxzay5vzw-ahbk-web.drv'.
| 12:02:21 |
I use NixOS btw | oh wait I just had to override installPhase, nvm | 12:05:40 |
jfvillablanca | hi, i am trying to package nativescript-cli with buildNpmPackage, i get an error
> npm ERR! code: 'MODULE_NOT_FOUND',
> npm ERR! requireStack: [ '/build/source/postinstall.js' ]
checking the repo, postinstall.js is at root of the directory. so I assume i need some preBuild hook to move postInstall.js to /build/source. Am I correct?
| 12:47:52 |
Lily Foster | In reply to @jfvillablanca:matrix.org
hi, i am trying to package nativescript-cli with buildNpmPackage, i get an error
> npm ERR! code: 'MODULE_NOT_FOUND',
> npm ERR! requireStack: [ '/build/source/postinstall.js' ]
checking the repo, postinstall.js is at root of the directory. so I assume i need some preBuild hook to move postInstall.js to /build/source. Am I correct?
Can you share full log? That copy is already done for your in unpackPhase | 12:52:04 |
jfvillablanca | https://pastebin.com/0MsCVDKv
there are some weird characters in there, maybe from the redirect to the log file | 12:57:26 |
Lily Foster | This is the more relevant error:
Error: Cannot find module '/build/source/lib/constants'
| 13:02:06 |
Lily Foster | Can you get another log with npmFlags = [ "--loglevel=verbose" ] on the derivation? | 13:04:15 |
jfvillablanca | https://pastebin.com/d4mbWiS7 | 13:12:20 |
| 13 Oct 2023 |
| @ThorHop:matrix.org changed their display name from hopland (glib gary) to hopland (flaky frank). | 10:27:20 |
@ThorHop:matrix.org | So the last couple of days I've been trying to package the statics website generated from an npm process, but I keep getting the error:
error: builder for '/nix/store/g088r2wpqbbchsjcrs5gynkhdqjpfkf4-innleder-npm-deps.drv' failed with exit code 1;
last 10 log lines:
> node_modules/@types/estree
> node_modules/@types/mdast
> node_modules/@jridgewell/gen-mapping
> node_modules/@jridgewell/resolve-uri
> node_modules/@jridgewell/set-array
> node_modules/@jridgewell/sourcemap-codec
> Error: unknown error
>
> Caused by:
> [55] Failed sending data to the peer
| 14:02:58 |
@ThorHop:matrix.org | Lily Foster Is this still due to that PR you've been waiting on? | 14:03:13 |
Cobalt | Looks like it, that's at least the same error code | 14:08:08 |
@ThorHop:matrix.org | I hope so, because I've been slamming my head against the wall with learning this process the last couple of days ^^; might have to upload my flake and nix files just to make sure it isn't my sucky programming "skills". | 14:12:01 |
Lily Foster | What channel are you on? | 14:12:57 |