-
-
Notifications
You must be signed in to change notification settings - Fork 115
Error in CI: ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE Cannot perform a frozen installation because the lockfile needs updates #40
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
Comments
Can you try |
Note that |
For now i have fixed issue by adding following to my
|
Why do you run You should run |
Is you using latest pnpm the version of 7.x? |
the same error ➜ toolbox git:(master) pnpm i --fix-lockfile
ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER [email protected][email protected] isn't supported by any available resolver. |
rerun |
the same error with node-fetch I have this in my "node-fetch": "@2.6.7", This error happened while installing the dependencies of [email protected] |
Same error here.
getting this in CI:
|
Same error! Running This is with a project that has a peer dependency listed like this: "peerDependencies": {
"@ethersproject/bignumber": "5.x"
}, |
You need to update pnpm before running it :) |
Yeah, I was on v7.30.1. After upgrading to v8, I can confirm that running Thanks for your help, @ramnes. |
Just encountered the same issue in Azure Pipelines. I can also confirm that updating from pnpm 7 to 8 and fixing the lockfile again worked for me. |
Same here. Upgraded from pnpm v7 to v8 and fixing the lock file using the |
same problem today. this worked for us.
not sure exactly what caused this but maybe something upstream? it feels suspicious that this issue had comments September 2022 and now there's a lot more traffic today... |
@jyono The spike is probably related to the pnpm v8 release just a few hours ago, which seems to require a new lockfile version when installing with We ran into this issue too, because our CI/CD was pulling the latest Locally installing pnpm v8 and updating the lockfile (as per above posts) worked. Alternatively, you can also fix your pnpm version to |
I guess the takeaway from this issue is to always use specific versions of external dependencies in CI. |
(+1, ironically also why the lockfiles in question exist) |
pnpm lock is incompatible between v7 and v8? any plan to fix? |
@njleonzhang probably better to open a separate issue or discussion on this. but from my understanding, pnpm v8 can read lockfile v5 (used by pnpm v7) , and will automatically upgrade them to lockfile v6 when running the recent comments in this issue arose from running |
I have a I'm getting the |
thanks! |
Summary: |
* pin all deps explicitly and update them * do it the right way 🤷♂️ * fix lockfile * pnpm update * λ pnpm install --fix-lockfile * upgrade pnpm to v8 pnpm/action-setup#40 (comment)
If you encounter this error with
|
My Action Step is
`
`
I am getting below error when running this action
Error in CI: ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE Cannot perform a frozen installation because the lockfile needs updates
and when try to fix my lockfile locally with command
npm i --fix-lockfile
i get following error:`
npm i --fix-lockfile
npm ERR! Cannot read properties of null (reading 'matches')
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/un/.npm/_logs/2022-05-01T10_32_11_056Z-debug-0.log
`
The text was updated successfully, but these errors were encountered: