mac02: building c6hjbjd5cil5mlbpzk5m4dvcgi5ffjl7-letta-code-0.34.11.drv Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/ifpf7qph5637hb2w0qhay50crv8405jx-letta-code-src-with-lock source root is letta-code-src-with-lock Running phase: patchPhase Executing npmConfigHook Configuring npm Validating consistency between /nix/var/nix/builds/nix-56255-2120449886/letta-code-src-with-lock/npm-shrinkwrap.json and /nix/store/sdm6gisypavi4b9c3xlzg4ndkn71bd5y-letta-code-0.34.11-npm-deps/package-lock.json Making cache writable Setting npm_config_cache to /nix/var/nix/builds/nix-56255-2120449886/cache Installing dependencies npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm error code ENOTCACHED npm error request to https://registry.npmjs.org/@modelcontextprotocol%2fserver-everything 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: /nix/var/nix/builds/nix-56255-2120449886/cache/_logs/2026-10-12T04_51_59_916Z-debug-0.log ERROR: npm failed to install dependencies Here are a few things you can try, depending on the error: 1. Set `npmDepsFetcherVersion = 2` (and update `npmDepsHash`) 2. Set `makeCacheWritable = true` Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error. 3. Set `npmFlags = [ "--legacy-peer-deps" ]`