Skip to content

A pruned copy couldn't be written

error: couldn't trim pnpm-lock.yaml: Axle doesn't read lockfile version 5.4
hint: Install with a version of your package manager that Axle reads, or update Axle, then run axle prune again.
error: .. can't hold the pruned copy
hint: Give a folder that isn't the repository, a folder around it or inside .git, such as out.

axle prune couldn’t write its copy:

  • The lockfile can’t be trimmed. It’s Bun’s older binary bun.lockb, a lockfile from a version of the package manager Axle doesn’t read, or a lockfile with a merge conflict in it. Axle trims pnpm-lock.yaml versions 6 and 9, package-lock.json versions 2 and 3, yarn.lock from Yarn 1 on, and bun.lock up to version 2.
  • The folder can’t hold the copy. --out names the repository itself, a folder around it, or a folder inside .git, where the copy would mix with the repository.

Nothing was written.

  • If the lockfile has conflict markers, resolve them and install again. If its format is older than Axle reads, install with a current version of your package manager; if it’s newer, update Axle. Bun converts bun.lockb to bun.lock with bun install --save-text-lockfile.
  • Give --out a new folder, such as out, or one outside the repository.