Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pnpm): disable frozen lockfile #1

Merged
merged 1 commit into from
Jul 18, 2022
Merged

Conversation

HorusGoul
Copy link
Contributor

Hey! I hit a bug in the GitHub Action when using pnpm:

 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up-to-date with packages/config/package.json
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"
Error: Process completed with exit code 1.

How to fix it:
In CI environments, pnpm always runs with the --frozen-lockfile option. In this case, we attempt to run pnpm install to update the lockfile, so we need to be explicit about it, and as the error tells us, we need to use the --no-frozen-lockfile option.

Hey! I hit a bug in the GitHub Action when using pnpm:

```
 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up-to-date with packages/config/package.json
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"
Error: Process completed with exit code 1.
```

**How to fix it:**
In CI environments, pnpm always runs with the `--frozen-lockfile` option. In this case, we attempt to run `pnpm install` to update the lockfile, so we need to be explicit about it.
@JamieMason JamieMason changed the title Fix pnpm install command fix(pnpm): disable frozen lockfile Jul 18, 2022
@JamieMason JamieMason merged commit eab9605 into JamieMason:main Jul 18, 2022
@JamieMason
Copy link
Owner

Thanks a lot @HorusGoul 🙌🏻

@JamieMason
Copy link
Owner

My first attempt creating a tag and release using only the github.com UI but it should be available as 0.2.1 if all went well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants