-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG][Regression] ERESOLVE if peerDependencies of dependencies support later major version #3868
Comments
Another example:
{
"name": "project-a",
"dependencies": {
"eslint": "^7.0.0",
"eslint-plugin-node": "^11.0.0"
}
}
|
Thanks for the thorough report @kevinoid! This is the same issue as #3881, but manifesting in that
|
Interesting! Thanks for investigating an implementing a fix @lukekarrys! I'll look forward to it in a future release. |
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Since it causes npm install to fail with ERESOLVE on npm@^7.20.3 or npm@>=8.0.0 <8.1.1 due to the combination of eslint@^7.0.0 and eslint-plugin-node@^11.0.0: npm/cli#3868 (comment) Rather than updating npm on the runner during each CI run, remove --strict-peer-deps until a version of Node.js ships with npm@^8.1.1. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Is there an existing issue for this?
Current Behavior
With
npm@^7.20.3
ornpm@8.0.0
, when one of the peer dependencies of a dependency includes a later major version than the dependency version (in addition to the same major version),npm install --strict-peer-deps=true
fails withERESOLVE
, as described in issue #2055.``Expected Behavior
npm install
should complete successfully with the latest version declared by the dependency (which also satisfies the peer dependency of the other dependency).Steps To Reproduce
Using the same steps as #2055:
With
package.json
:Running
npm install --strict-peer-deps=true
produces:I would expect it to install
webpack@4.46.0
, since it is the latest version which satisfies thewebpack@^4.41
dependency and it also satisfies thewebpack@"^4.0.0 || ^5.0.0"
peer dependency fromwebpack-dev-middleware@3.7.3
.Environment
npm@^7.20.3
ornpm@8.0.0
I believe I've bisected the regression to 97cb5ec which upgraded to
@npmcli/arborist@2.8.0
for #3377.The text was updated successfully, but these errors were encountered: