npm lockfile version 2 automatic upgrade lacks rollback mechanism
Goal Enable safe reversion to a version 1 lockfile after npm automatically upgrades the schema during npm install . Constraints and uncertainty When npm (v7–v10) encounters a version 1 lockfile, it upgrades the file in place to version 2 without creating a backup copy. No CLI flag or configuration option exists to force a downgrade back to version 1, and man