custom-immutable-matchers icon indicating copy to clipboard operation
custom-immutable-matchers copied to clipboard

npm ERESOLVE error with [email protected]

Open SevenZark opened this issue 4 years ago • 4 comments

This library now throws an ERESOLVE error on attempted installation.

npm i --save immutable

added 1 package in 1s

npm i --save jest-immutable-matchers npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/immutable npm ERR! immutable@"^4.0.0-rc.12" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer immutable@">=3.0.0" from [email protected] npm ERR! node_modules/jest-immutable-matchers npm ERR! jest-immutable-matchers@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See [path]\npm-cache\eresolve-report.txt for a full report.

SevenZark avatar Feb 18 '21 22:02 SevenZark

Feel free to open a PR.

unindented avatar Feb 19 '21 04:02 unindented

I'd be happy to if I knew how to fix it. Shouldn't 4.0.0 satisfy the requirement of >= 3.0.0? Or if no and that comparison logic stops at the major revision number, then wouldn't this be a breaking change that wouldn't be backward compatible...? I'm afraid I'm not very expert on version resolution in npm and don't quite know the right move here.

SevenZark avatar Feb 19 '21 15:02 SevenZark

Any solution for this?

cristian-sima avatar Aug 26 '21 11:08 cristian-sima

@cristian-sima still waiting for PRs. Feel free to contribute.

unindented avatar Aug 26 '21 16:08 unindented