Skip to content

Dependency Conflict: eslint-plugin-promise Version Mismatch #28

@code-arnab

Description

@code-arnab

After doing a fresh installation of the plugins IntelliJ IDEA suggested to download the dependencies from package.json of analysis-model, coverage-model, warnings-ng-plugin, etc using npm install. After doing so it installed the dependencies for 3 of them but the for the 'warnings-ng` the process fails due to a dependency conflict between eslint-plugin-promise and eslint-config-standard. The project specifies eslint-plugin-promise@^7.0.0, but [email protected] requires a lower version (^4.2.1 || ^5.0.0). This causes npm to be unable to resolve the dependency tree, resulting in an ERESOLVE error.

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\npmrc
4 silly config load:file:D:\REPO\plugins\devenv\warnings-ng-plugin\.npmrc
5 silly config load:file:C:\Users\arnab\.npmrc
6 silly config load:file:C:\Program Files\nodejs\etc\npmrc
7 verbose title npm install
8 verbose argv "install"
9 verbose logfile logs-max:10 dir:C:\Users\arnab\AppData\Local\npm-cache\_logs\2025-02-10T06_03_27_091Z-
10 verbose logfile C:\Users\arnab\AppData\Local\npm-cache\_logs\2025-02-10T06_03_27_091Z-debug-0.log
11 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
12 silly logfile start cleaning logs, removing 1 files
13 silly logfile done cleaning log files
14 silly idealTree buildDeps
15 silly fetch manifest remark-cli@^12.0.0
16 silly packumentCache full:https://registry.npmjs.org/remark-cli cache-miss
17 http fetch GET 200 https://registry.npmjs.org/remark-cli 36ms (cache hit)
18 silly packumentCache full:https://registry.npmjs.org/remark-cli set size:80728 disposed:false
19 silly fetch manifest remark-lint@^10.0.0
20 silly packumentCache full:https://registry.npmjs.org/remark-lint cache-miss
21 http fetch GET 200 https://registry.npmjs.org/remark-lint 11ms (cache hit)
22 silly packumentCache full:https://registry.npmjs.org/remark-lint set size:112004 disposed:false
23 silly fetch manifest remark-preset-lint-recommended@^7.0.0
24 silly packumentCache full:https://registry.npmjs.org/remark-preset-lint-recommended cache-miss
25 http fetch GET 200 https://registry.npmjs.org/remark-preset-lint-recommended 12ms (cache hit)
26 silly packumentCache full:https://registry.npmjs.org/remark-preset-lint-recommended set size:62438 disposed:false
27 silly fetch manifest eslint@^7.32.0
28 silly packumentCache full:https://registry.npmjs.org/eslint cache-miss
29 http fetch GET 200 https://registry.npmjs.org/eslint 38ms (cache hit)
30 silly packumentCache full:https://registry.npmjs.org/eslint set size:1714187 disposed:false
31 silly fetch manifest eslint-config-standard@^16.0.3
32 silly packumentCache full:https://registry.npmjs.org/eslint-config-standard cache-miss
33 http fetch GET 200 https://registry.npmjs.org/eslint-config-standard 30ms (cache hit)
34 silly packumentCache full:https://registry.npmjs.org/eslint-config-standard set size:200005 disposed:false
35 silly fetch manifest eslint-plugin-import@^2.25.2
36 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-import cache-miss
37 http fetch GET 200 https://registry.npmjs.org/eslint-plugin-import 40ms (cache hit)
38 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-import set size:478323 disposed:false
39 silly fetch manifest eslint-plugin-node@^11.1.0
40 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-node cache-miss
41 http fetch GET 200 https://registry.npmjs.org/eslint-plugin-node 32ms (cache hit)
42 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-node set size:170627 disposed:false
43 silly fetch manifest eslint-plugin-promise@^7.0.0
44 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-promise cache-miss
45 http fetch GET 200 https://registry.npmjs.org/eslint-plugin-promise 12ms (cache hit)
46 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-promise set size:134091 disposed:false
47 silly fetch manifest eslint-plugin-promise@^4.2.1 || ^5.0.0
48 silly packumentCache full:https://registry.npmjs.org/eslint-plugin-promise cache-hit
49 verbose stack Error: unable to resolve dependency tree
49 verbose stack     at #failPeerConflict (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1360:25)
49 verbose stack     at #loadPeerSet (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1326:33)
49 verbose stack     at async #buildDepStep (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:901:11)
49 verbose stack     at async Arborist.buildIdealTree (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:181:7)
49 verbose stack     at async Promise.all (index 1)
49 verbose stack     at async Arborist.reify (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:131:5)
49 verbose stack     at async Install.exec (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\lib\commands\install.js:150:5)
49 verbose stack     at async Npm.exec (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\lib\npm.js:207:9)
49 verbose stack     at async module.exports (C:\Users\arnab\AppData\Roaming\nvm\v20.17.0\node_modules\npm\lib\cli\entry.js:74:5)
50 error code ERESOLVE
51 error ERESOLVE unable to resolve dependency tree
52 error
53 error While resolving: [email protected]
53 error Found: [email protected]�[2m�[22m
53 error �[2mnode_modules/eslint-plugin-promise�[22m
53 error   �[34mdev�[39m eslint-plugin-promise@"^7.0.0" from the root project
53 error
53 error Could not resolve dependency:
53 error �[95mpeer�[39m eslint-plugin-promise@"^4.2.1 || ^5.0.0" from [email protected]�[2m�[22m
53 error �[2mnode_modules/eslint-config-standard�[22m
53 error   �[34mdev�[39m eslint-config-standard@"^16.0.3" from the root project
53 error
53 error Fix the upstream dependency conflict, or retry
53 error this command with --force or --legacy-peer-deps
53 error to accept an incorrect (and potentially broken) dependency resolution.
54 error
54 error
54 error For a full report see:
54 error C:\Users\arnab\AppData\Local\npm-cache\_logs\2025-02-10T06_03_27_091Z-eresolve-report.txt
55 silly unfinished npm timer reify 1739167408029
56 silly unfinished npm timer reify:loadTrees 1739167408040
57 silly unfinished npm timer idealTree:buildDeps 1739167408069
58 silly unfinished npm timer idealTree:#root 1739167408070
59 verbose cwd D:\REPO\plugins\devenv\warnings-ng-plugin
60 verbose os Windows_NT 10.0.26100
61 verbose node v20.17.0
62 verbose npm  v10.8.2
63 verbose exit 1
64 verbose code 1
65 error A complete log of this run can be found in: C:\Users\arnab\AppData\Local\npm-cache\_logs\2025-02-10T06_03_27_091Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions