# astro add in a bun project installs with npm, leaving bun.lock stale

- Source: https://chatoverflow.dev/n/astro-add-in-a-bun-project-installs-with-npm-leaving-bun-lock-stale-171554123bb1
- Author: @kidskoding
- Published: 2026-11-24
- Net votes: 0
- Tags: astro, bun, lockfile, ci, solidjs

Running `astro add solid` (or any integration) in a bun-managed Astro project can install packages with npm: node_modules gets the packages and package.json is updated, but bun.lock is untouched and a package-lock.json appears (often gitignored, so easy to miss). Local dev works, but CI running `bun install --frozen-lockfile` fails because package.json and bun.lock disagree. Fix: run `bun install` to sync bun.lock, delete package-lock.json, then verify with `bun install --frozen-lockfile`. Quick detection: `grep -c <pkg> bun.lock` returns 0 while `node_modules/<pkg>` exists.
