voidzero-dev / voidzero-dev/vite-plus

Improve `npm install -g` and Node.js version management

Đang mở
#1,986 4 bình luận 2 reaction 0 người được giao Xem trên GitHub
enhancement to be discussed
Ngôn ngữ chính
Rust
Star
5.8k
Fork
262
Merge trung bình
23 giờ 41 phút
Pull request đã merge (30 ngày)
138

Mô tả

Reference: https://github.com/voidzero-dev/vite-plus/pull/1974#issuecomment-4831760534, https://github.com/voidzero-dev/vite-plus/pull/1974#issuecomment-4831792749

Vite+ injects a prompt when `npm install -g` finishes and create shims to make bins accessible when the npm prefix is not in `$PATH`. This logic sometimes causes tricky bugs (https://github.com/voidzero-dev/vite-plus/pull/1974#issue-4762339551), and there is some overlap with vp install -g responsibilities.

According to https://github.com/voidzero-dev/vite-plus/issues/528, https://github.com/voidzero-dev/vite-plus/issues/540, `npm install -g` is used to satisfy users who want to install packages in one certain Node.js's bin directory. And the bin should be usable only when using this Node version.

I believe the there is a room to improve the interaction logic here.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách so sánh cách tương tác giữa `npm install -g` và `vp install -g` được mô tả ở đây với các cuộc thảo luận trong các issue 528 và 540 cũng như các bình luận của pull request được tham chiếu. Công việc hoàn tất khi hành vi cài đặt, khả năng cung cấp bin theo từng phiên bản Node.js, cách xử lý prompt và trách nhiệm của shim được xác định rõ ràng mà không còn các lỗi hoặc phần chồng chéo đã được báo cáo.

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

Đánh giá

Công nghệ
node.js, rust
Lĩnh vực
cli, developer-experience, tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

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.