Skip to content

Add outdated lockfile check #438

@more-no

Description

@more-no

When I tried to deploy on Netlify this is what happened:

7:52:49 PM: Installing npm packages using pnpm version 8.3.1
7:52:49 PM: Lockfile is up to date, resolution step is skipped
7:52:49 PM:  ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with frozen-lockfile because pnpm-lock.yaml is not up to date with package.json
7:52:49 PM: Note that in CI environments this setting is true by default. If you still need to run install in such cases, use pnpm install --no-frozen-lockfile
7:52:49 PM: Error during pnpm install
7:52:49 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
7:52:50 PM: Failing build: Failed to install dependencies

It wasn' t expecting it because Preflight didn't gave any error and it is supposed to be checking also dependency problems.

So it would be nice if in the future Preflight were able to also find the error that Netlify chatched.

BTW my problem was easily solved with:
pnpm install --no-frozen-lockfile

After that I was able to deploy.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions