patternfly / patternfly/patternfly-react
error when using npm to run install
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 862
- Fork
- 392
- Merge trung bình
- 4 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 9
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các khai báo dependency của repository cho eslint-plugin-patternfly-react và eslint-config-airbnb, sau đó tái hiện lỗi với npm 8 bằng cách sử dụng npm install. Kiểm tra hướng dẫn cài đặt trong README để xem chỉ dẫn về package manager được hỗ trợ. Được xem là hoàn tất khi quá trình cài đặt tiêu chuẩn hoạt động mà không cần workaround peer-dependency không đúng, hoặc khi flag bắt buộc hay package manager thay thế được ghi lại trong tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- eslint, typescript
- Lĩnh vực
- build-system, tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100