Getting this error while trying to install exact versions of packages using pnpm install --frozen-lockfile
_ERR_PNPM_OUTDATEDLOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json
In CI environments pipelines will fail, if configured to use pnpm, because this setting is true by default. You can still install exact versions of dependencies through npm using npm ci, because package-lock.json is in sync with package.json.
Getting this error while trying to install exact versions of packages using
pnpm install --frozen-lockfile
_ERR_PNPM_OUTDATEDLOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.jsonIn CI environments pipelines will fail, if configured to use pnpm, because this setting is true by default. You can still install exact versions of dependencies through npm using
npm ci
, because package-lock.json is in sync with package.json.