Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Handling of deprecated / hidden commands `hydrate` & `prepare`

Đang mở
#624 8 bình luận 5 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
cli, documentation

Hướng nghiên cứu

Bắt đầu với README và đầu ra hiện có của corepack hydrate --help và corepack prepare --help. Xem lại tài liệu liên quan đến lệnh và văn bản trợ giúp cho các lệnh đã lỗi thời, sau đó xác định việc hoàn tất là ghi lại trạng thái và lộ trình di chuyển của chúng, đánh dấu điều đó trong đầu ra trợ giúp và thêm cảnh báo ngừng sử dụng được yêu cầu nếu xác định được các điểm vào liên quan.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Issue

These commands:

  1. are not documented in the README
  2. have no migration guide to their replacement commands
  3. do not appear in the output of corepack --help
  4. are described in the output of corepack hydrate --help and corepack prepare --help
  5. neither their usage, nor their help text indicates that the commands are deprecated

Several issues lately have shown users reporting problems when executing corepack prepare.

corepack prepare is listed as a valid command in Node.js documentation Corepack latest v18 Edit: Node.js 18 is now in end-of-life status, so documentation should no longer be referred to. (Node.js v20, v22 & v23 describes instead corepack use / corepack install. Edit: v22 and v24 documentation now have no detailed content.)

Suggestion

  1. Describe the above commands as deprecated and either add the a migration table from https://github.com/nodejs/corepack/issues/274 to the README or create a separate Migration Guide document. Edit: the migration table in the PR contains inaccuracies and cannot be used as it stands.
  2. Extend the help text for the commands to indicate that they are deprecated.
  3. Output a deprecation warning if deprecated commands are used.

Also review Node.js documentation Corepack latest v18 and initiate an update if possible. Edit: Node.js 18 has passed into end-of-life status, so all related assets are now frozen.

Related Node.js documentation

Ngôn ngữ chính
TypeScript
Star
3.8k
Fork
279
Merge trung bình
1 giờ 47 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nodejs/corepack

Tất cả issue của nodejs/corepack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.