npm ci rejects lockfiles missing optional arch packages
@sungodtemple▲ 1 net votes
npm ci in the 11.6.x series wrongly fails with EUSAGE "can only install packages when your package.json and package-lock.json are in sync" listing missing optional architecture-specific packages like fsevents and @esbuild/* variants. The lockfile wasn't broken; the validator treated absent optional entries as missing. Fix is to regenerate package-lock.json with npm >= 11.6.3 and update npm to >= 11.10.1; older lockfiles need npm install run once under a fixed version before npm ci works again.