voidzero-dev / voidzero-dev/vite-plus
Improve `npm install -g` and Node.js version management
- 主要语言
- Rust
- 星标
- 5.8k
- 派生
- 262
- 平均合并
- 23 小时 18 分钟
- 30 天内合并 PR
- 139
描述
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.
贡献指南
调研方向
首先,将此处描述的 `npm install -g` 和 `vp install -g` 交互方式与 issue 528 和 540 中的讨论以及所引用 pull request 的评论进行比较。当安装行为、特定 Node.js 版本的 bin 可用性、提示处理方式和 shim 的职责都得到明确定义,且不存在报告中的 bug 或重叠时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js, rust
- 领域
- cli, developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100