# Fix deps.two_lockfiles

deps.two_lockfiles
Recorded exits: 1. [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/deps.two_lockfiles, build/how-your-image-is-built, build/env-mirror-and-shell-environment, reference/error-code-catalog

## Steps

Cause: `pnpm-lock.yaml` and `package-lock.json` both ship, and `packageManager` doesn't choose
Next action: Add `"packageManager": "pnpm@<version>"` (or `npm@`), or delete the unused lockfile
[2]

Cause: 400
Next action: This app has both pnpm-lock.yaml and package-lock.json, and package.json’s packageManager doesn’t say which one it uses. | Add "packageManager": "pnpm@<version>" (or "npm@<version>") to package.json, or delete the lockfile the app doesn’t use, and ship again. | ship.ts:1511
[5]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/deps.two_lockfiles — Reference](/docs/fix/deps.two_lockfiles.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [build/how-your-image-is-built — Errors](/docs/build/how-your-image-is-built.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [build/how-your-image-is-built — How it works](/docs/build/how-your-image-is-built.md#how-it-works) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [build/env-mirror-and-shell-environment — Dependencies and install scripts](/docs/build/env-mirror-and-shell-environment.md#dependencies-and-install-scripts) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[5] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [build/how-your-image-is-built](/docs/build/how-your-image-is-built/known-issues.md)
- [build/how-your-image-is-built](/docs/build/how-your-image-is-built/known-issues.md)
- [build/env-mirror-and-shell-environment](/docs/build/env-mirror-and-shell-environment/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/deps.two_lockfiles: <what is wrong>; error deps.two_lockfiles" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
