Comments (23)
@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 --frozen-lockfile
(which some CI/CD environments default to).
We ran into this issue too, because our CI/CD was pulling the latest pnpm
version. Earlier today, that was v7, until this switched to v8, breaking our builds due to the unsupported lockfile version.
Locally installing pnpm v8 and updating the lockfile (as per above posts) worked.
Alternatively, you can also fix your pnpm version to pnpm@^7
and stick with the old lockfile.
from action-setup.
You need to update pnpm before running it :)
from action-setup.
Same error! Running pnpm i --fix-lockfile
does not change the lockfile, but in CI I keep getting an error.
This is with a project that has a peer dependency listed like this:
"peerDependencies": {
"@ethersproject/bignumber": "5.x"
},
from action-setup.
Yeah, I was on v7.30.1. After upgrading to v8, I can confirm that running --fix-lockfile
fixed the issue.
Thanks for your help, @ramnes.
from action-setup.
Same here. Upgraded from pnpm v7 to v8 and fixing the lock file using the --fix-lockfile
option fixed the issue
from action-setup.
same problem today. this worked for us.
corepack prepare pnpm@latest --activate
corepack enable
pnpm -v
should see 8.0.0pnpm i --fix-lockfile
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...
from action-setup.
I guess the takeaway from this issue is to always use specific versions of external dependencies in CI.
from action-setup.
npm i --fix-lockfile
Can you try pnpm i --fix-lockfile
?
from action-setup.
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.
from action-setup.
pnpm i --fix-lockfile
ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER [email protected][email protected][email protected] isn't supported by any available resolver.
This error happened while installing the dependencies of [email protected]
Progress: resolved 28, reused 29, downloaded 0, added 0
Note that npm i --legacy-peer-deps
works fine when using npm.
from action-setup.
For now i have fixed issue by adding following to my .npmrc
file
auto-install-peers=true
strict-peer-dependencies=false
from action-setup.
and when try to fix my lockfile locally with command npm i --fix-lockfile i get following error:
Why do you run npm i
if you use pnpm?
You should run pnpm install
and commit the lockfile.
from action-setup.
Is you using latest pnpm the version of 7.x?
from action-setup.
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.
from action-setup.
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 pnpm install
and commit the lockfile, its ok
from action-setup.
the same error with node-fetch
I have this in my resolutions
"node-fetch": "@2.6.7",
ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER node-fetch@@2.6.7 isn't supported by any available resolver.
This error happened while installing the dependencies of [email protected]
from action-setup.
Same error here.
➜ pnpm i --fix-lockfile
Scope: all 10 workspace projects
.../apps/app:
ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER [email protected][email protected] isn't supported by any available resolver.
This error happened while installing the dependencies of @hookform/[email protected]
Progress: resolved 309, reused 309, downloaded 0, added 0
getting this in CI:
Scope: all 10 workspace projects
Lockfile is up to date, resolution step is skipped
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with apps/app/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"
from action-setup.
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)
from action-setup.
pnpm lock is incompatible between v7 and v8? any plan to fix?
from action-setup.
@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 pnpm install
. (This is also stated in their v8 migration instructions.)
the recent comments in this issue arose from running pnpm install --frozen-lockfile
(which prohibits updates to the lockfile) with pnpm v8 while still using a lockfile v5.
from action-setup.
I have a @formkit/auto-animate
dependency, version 1.0.0-beta.6
, pnpm version 8.1.0
I'm getting the ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER @formkit@[email protected] isn't supported by any available resolver.
error in CI.
from action-setup.
@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
--frozen-lockfile
(which some CI/CD environments default to).We ran into this issue too, because our CI/CD was pulling the latest
pnpm
version. Earlier today, that was v7, until this switched to v8, breaking our builds due to the unsupported lockfile version.Locally installing pnpm v8 and updating the lockfile (as per above posts) worked.
Alternatively, you can also fix your pnpm version to
pnpm@^7
and stick with the old lockfile.
thanks!
from action-setup.
Summary:
Use corepack to manage package manager is the best choice. This enforces the same manager in different environments. For example, you are running pnpm@7 locally but pnpm@8 in ci, the lockfile format will break the installation. So, please make sure you have packageManager
field defined in your package.json instead of specifing a pnpm version in the workflow file manually.
from action-setup.
Related Issues (20)
- Build script fails with "Cannot augment module '_' with value exports because it resolves to a non-module entity."
- Duplicate message in error: in the package.json with the key "packageManager" HOT 1
- How does this compare to `run: corepack enable`? HOT 10
- `dest` not working HOT 1
- Could not read from remote repository due to renamed organization
- ENOENT: no such file or directory during self-install HOT 6
- Add support for `volta.pnpm` field HOT 1
- Update to Node.js v20 HOT 1
- should upgrade node16 to node20 HOT 1
- The action breaks the container environment in the openSUSE HOT 1
- Permission denied errors with github repo references in transitive deps HOT 1
- Add support for grabbing `version` from the `engines.pnpm` field HOT 2
- How to cache pnpm ? HOT 1
- README references old versions of pnpm
- Installing pnpm when the package.json isn't in the root directory HOT 3
- Enable Code Scanning & Address Code Quality Issues HOT 4
- `v2` not up to date HOT 5
- Invalid
- EACCES: permission denied when running in a container w/ non-default user
- node20 support HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-setup.