Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`rescript/cli/bins` checks Node.js >=20.11.0 while the packages require >=22

已关闭 适合新手
#8,761 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, nodejs
领域
cli

调研方向

从 cli/common/bins.cjs 中的版本常量和错误信息开始(约第 9 行和第 69 行),然后将它们与根目录的 engines.node、packages/@rescript/*/package.json 以及 .nvmrc 进行比较。完成的标准是运行时检查及其信息都要求 Node 22,使 Node 20.11–21 被拒绝并给出清晰的错误。检查 CI 中的 Node 版本设置,确认没有其他地方仍然期望 20.11。

由索引模型根据 Issue 内容生成。

描述

Found by differential semantic drift analysis from ece8b148 to a7721303.

What is broken

cli/common/bins.cjs L9 checks for Node.js >=20.11.0 and reports "ReScript requires Node.js >=20.11.0" (L69), while every other statement of the requirement says 22:

  • engines.node is ">=22" in the root package.json and in all five packages/@rescript/*/package.json (#8695);
  • .nvmrc is 22; CONTRIBUTING.md says v22.x or newer; CI tests "oldest supported" with node-version: 22.

So on Node 20.11–21 the runtime check passes and users get no clear message, although the version is unsupported.

Related: #8694 and #8695, both listed in #8712; this is how the two interact, not a repeat of either.

Possible cause (speculation only)

A guess: #8694 copied the version constant from the previous bins.js while #8695 raised the requirement in parallel, and neither PR saw the other's change.

主要语言
OCaml
星标
7.5k
派生
484
平均合并
19 小时 20 分钟
30 天内合并 PR
96

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rescript-lang/rescript 的其他 Issue

查看 rescript-lang/rescript 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。