patternfly / patternfly/patternfly-react
error when using npm to run install
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 862
- Forks
- 392
- Ø Merge
- 4 T. 8 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
when using npm 8 to execute npm install I get the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: eslint-plugin-patternfly-react@4.23.2
npm ERR! Found: eslint@8.7.0
npm ERR! node_modules/eslint
npm ERR! peer eslint@">=5" from eslint-plugin-patternfly-react@4.23.2
npm ERR! packages/eslint-plugin-patternfly-react
npm ERR! eslint-plugin-patternfly-react@4.23.2
npm ERR! node_modules/eslint-plugin-patternfly-react
npm ERR! workspace packages/eslint-plugin-patternfly-react from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.9.0" from eslint-config-airbnb@16.1.0
npm ERR! node_modules/eslint-config-airbnb
npm ERR! eslint-config-airbnb@"^16.1.0" from eslint-plugin-patternfly-react@4.23.2
npm ERR! packages/eslint-plugin-patternfly-react
npm ERR! eslint-plugin-patternfly-react@4.23.2
npm ERR! node_modules/eslint-plugin-patternfly-react
npm ERR! workspace packages/eslint-plugin-patternfly-react 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 /Users/nthoen/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/nthoen/.npm/_logs/2022-01-17T13_07_09_970Z-debug-0.log
It seems - according to stack overflow that "When using npm 7, this comes up a lot because peer dependencies issues are treated as errors in version 7 whereas they were generally only warnings in version 6. Usually using --legacy-peer-deps makes it work with npm 7[+].”
When I run npm install --legacy-peer-deps, the install works with no errors.
It seems we might need to either readdress our dependencies, or update our README to suggest adding the flag or opting for yarn to perform the install
Jira Issue: PF-190
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Abhängigkeitsdeklarationen des Repositorys für eslint-plugin-patternfly-react und eslint-config-airbnb zu überprüfen, und reproduziere anschließend den Fehler mit npm 8, indem du npm install ausführst. Prüfe die Installationsanweisungen in der README auf Hinweise zum unterstützten Paketmanager. Als erledigt gilt die Aufgabe, wenn eine standardmäßige Installation ohne eine falsche Peer-Dependency-Umgehung funktioniert oder das erforderliche Flag beziehungsweise ein alternativer Paketmanager dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- eslint, typescript
- Bereich
- build-system, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100