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

Request: 1.1.x patch release — `latest` (1.1.0) still ships spawn-helper without exec bit

未关闭
#919 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清

调研方向

先检查 PR #858 和 #866,然后针对 1.1.0 和 beta 版本运行 issue 的 npm pack 和 tar 列表检查。完成的标准是:已发布的 1.1.1 软件包包含可执行的 darwin-arm64 和 darwin-x64 spawn-helper 文件,并且最新的 dist-tag 指向它。

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

描述

Summary: PRs #858 and #866 fixed the prebuilds/darwin-{arm64,x64}/spawn-helper exec-bit packaging defect (tracked in #850), but the fix has only shipped in the 1.2.0-beta.* channel. The latest dist-tag on npm is still 1.1.0, which ships the broken tarball. Stable consumers on node-pty@^1.1.0 continue to hit the bug on a fresh install — including in environments that don't run install scripts (pnpm by default).

Reproduction (verified just now against the npm registry):

$ npm pack [email protected]
$ tar -tvf node-pty-1.1.0.tgz | grep spawn-helper
-rw-r--r-- 0 0 0 50480 ... package/prebuilds/darwin-arm64/spawn-helper
-rw-r--r-- 0 0 0  9248 ... package/prebuilds/darwin-x64/spawn-helper

$ npm pack [email protected]
$ tar -tvf node-pty-1.2.0-beta.9.tgz | grep spawn-helper
-rwxr-xr-x 0 0 0 50480 ... package/prebuilds/darwin-arm64/spawn-helper
-rwxr-xr-x 0 0 0  9248 ... package/prebuilds/darwin-x64/spawn-helper

$ npm pack [email protected]
$ tar -tvf node-pty-1.2.0-beta.12.tgz | grep spawn-helper
-rwxr-xr-x 0 0 0 50480 ... package/prebuilds/darwin-arm64/spawn-helper
-rwxr-xr-x 0 0 0  9248 ... package/prebuilds/darwin-x64/spawn-helper

Current dist-tags:

$ npm view node-pty dist-tags
{ ..., latest: '1.1.0', beta: '1.2.0-beta.12' }

Ask: Cut a 1.1.1 patch release containing #858 and #866 so stable consumers no longer have to opt into a beta (or maintain a postinstall chmod +x shim, which is a no-op under pnpm's default-secure install policy) for a packaging fix.

Workarounds available today:

  • Pin to 1.2.0-beta.12 (we're doing this in our repo, dev-only consumer).
  • Postinstall chmod +x (doesn't help pnpm).
  • In-test or in-runtime self-heal that chmods the helper after require.resolve().

Happy to test against an RC.

主要语言
TypeScript
星标
2k
派生
343
平均合并
22 小时 24 分钟
30 天内合并 PR
6

环境准备

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

从这里开始

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

microsoft/node-pty 的其他 Issue

查看 microsoft/node-pty 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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