ERESOLVE unable to resolve dependency tree
See original GitHub issueDescribe the bug Unable to resolve dependency tree Fresh installation of everything.
To Reproduce Steps to reproduce the behavior:
- npm install @ionic/angular@6 @ionic/angular-server@6
- ionic start test blank --type angular
- cd test
- npm install @capacitor-community/barcode-scanner
- See error
Expected behavior install successfully like most updated plugins.
Screenshots
Version [v2.1.1]
Desktop (please complete the following information):
- OS: MacOS Monterey 12.5
- Browser [Firefox]
- Version [103.0.1]
Additional context `# npm resolution error report
2022-08-08T04:15:15.223Z
While resolving: ang@0.0.1 Found: @capacitor/core@4.0.1 node_modules/@capacitor/core @capacitor/core@“4.0.1” from the root project
Could not resolve dependency: peer @capacitor/core@“^3.0.0” from @capacitor-community/barcode-scanner@2.1.1 node_modules/@capacitor-community/barcode-scanner @capacitor-community/barcode-scanner@“*” from the root project
Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
Raw JSON explanation object:
{ “code”: “ERESOLVE”, “current”: { “name”: “@capacitor/core”, “version”: “4.0.1”, “whileInstalling”: { “name”: “ang”, “version”: “0.0.1”, “path”: “Desktop/Test” }, “location”: “node_modules/@capacitor/core”, “isWorkspace”: false, “dependents”: [ { “type”: “prod”, “name”: “@capacitor/core”, “spec”: “4.0.1”, “from”: { “location”: “Desktop/Test” } } ] }, “currentEdge”: { “type”: “prod”, “name”: “@capacitor/core”, “spec”: “4.0.1”, “from”: { “location”: “Desktop/Test” } }, “edge”: { “type”: “peer”, “name”: “@capacitor/core”, “spec”: “^3.0.0”, “error”: “INVALID”, “from”: { “name”: “@capacitor-community/barcode-scanner”, “version”: “2.1.1”, “whileInstalling”: { “name”: “ang”, “version”: “0.0.1”, “path”: “Desktop/Test” }, “location”: “node_modules/@capacitor-community/barcode-scanner”, “isWorkspace”: false, “dependents”: [ { “type”: “prod”, “name”: “@capacitor-community/barcode-scanner”, “spec”: “*”, “from”: { “location”: “Desktop/Test” } } ] } }, “strictPeerDeps”: false, “force”: false } `
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I just released v3, thanks to everyone that helped on this issue!
@ssj7 try to install the capacitor 4 branch version with
It is working until they do not merge the changes.
Also, it worths a look on the PR #142 the
self
keyword is missing from the code yet.