You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to install opentelemetry into my project, I get a dependency resolution failure for eslint:
$ npm install @opentelemetry/api
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-plugin-import-helpers@1.1.0
npm ERR! Found: eslint@8.34.0
npm ERR! node_modules/eslint
npm ERR! peer eslint@">=7.0.0" from eslint-config-prettier@8.3.0
npm ERR! node_modules/eslint-config-prettier
npm ERR! dev eslint-config-prettier@"^8.3.0" from the root project
npm ERR! peer eslint@"*" from eslint-import-resolver-typescript@3.5.3
npm ERR! node_modules/eslint-import-resolver-typescript
npm ERR! dev eslint-import-resolver-typescript@"^3.5.3" from the root project
npm ERR! 14 more (eslint-plugin-import, eslint-plugin-promise, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"5.x - 7.x" from eslint-plugin-import-helpers@1.1.0
npm ERR! node_modules/eslint-plugin-import-helpers
npm ERR! dev eslint-plugin-import-helpers@"^1.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR! peer eslint@"5.x - 7.x" from eslint-plugin-import-helpers@1.1.0
npm ERR! node_modules/eslint-plugin-import-helpers
npm ERR! dev eslint-plugin-import-helpers@"^1.1.0" 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!
npm ERR! For a full report see:
npm ERR! /Users/silver/.npm/_logs/2023-11-16T08_47_40_056Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/silver/.npm/_logs/2023-11-16T08_47_40_056Z-debug-0.log
My first question is -- why does a packaged library that I'm pulling in as a dependency even need eslint? Shouldn't that only be pulled in for the purpose of actually working on the library itself?
And my second question -- what's the workaround for a situation like this?
The text was updated successfully, but these errors were encountered:
I think this is more likely an issue with the project you're installing the API in. Running npm install somepackage installs all dependencies in the package.json, not just a single dependency.
When trying to install opentelemetry into my project, I get a dependency resolution failure for eslint:
My first question is -- why does a packaged library that I'm pulling in as a dependency even need eslint? Shouldn't that only be pulled in for the purpose of actually working on the library itself?
And my second question -- what's the workaround for a situation like this?
The text was updated successfully, but these errors were encountered: