Improve `npm install -g` and Node.js version management
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- node.js, rust
调研方向
首先,将此处描述的 npm install -g 和 vp install -g 交互方式与 issue 528 和 540 中的讨论以及所引用 pull request 的评论进行比较。当安装行为、特定 Node.js 版本的 bin 可用性、提示处理方式和 shim 的职责都得到明确定义,且不存在报告中的 bug 或重叠时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 5.8k
- 派生
- 263
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 147
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
voidzero-dev/vite-plus#2804 · 1 个 reaction ·
-
pending triage
难度 2/5 1-3 小时 新手友好度 75/100
voidzero-dev/vite-plus#2801 · 1 个 reaction ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
voidzero-dev/vite-plus#2097 · 10 条评论 · 2 个 reaction ·
-
documentation
voidzero-dev/vite-plus#2800 · 已指派 1 人 ·
-
pending triage
难度 3/5 1-2 天 新手友好度 65/100
voidzero-dev/vite-plus#2796 · 1 条评论 ·
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
bug github_actions
难度 2/5 1-3 小时 新手友好度 75/100
registrystack/registry-stack#1393 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
难度 2/5 1-3 小时 新手友好度 65/100
rocky-data/rocky#2181 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
oasisprotocol/oasis-sdk#2523 ·
-
bot:ai-assisted component:indexer QA-roadmap status:untriaged
难度 2/5 1-3 小时 新手友好度 75/100
midnightntwrk/midnight-indexer#1557 ·