Skip to content

agent-browser-cli@0.3.7 npm 包无法在 Windows 安装:缺少win32-x64 平台子包 #12

Description

@hanuxxx

现象

Windows 上安装 0.3.7 后运行命令报 native binary not found

$ npm install -g @sleepinsummer/agent-browser-cli@0.3.7
added 1 package in 2s

$ agent-browser-cli --help
Error: agent-browser-cli native binary not found. Run `npm run build` for local development.
    at resolveBinary (.../agent-browser-cli/npm/bin/agent-browser-cli.js:27:11)

Node.js v24.18.0

单独安装平台子包确认 0.3.7 不存在:

$ npm install -g @sleepinsummer/agent-browser-cli-win32-x64@0.3.7
npm error code ETARGET
npm error notarget No matching version found for @sleepinsummer/agent-browser-cli-win32-x64@0.3.7.

根因

主包 0.3.7 的 optionalDependencies 要求 win32-x64 版本为 0.3.7,但该子包在 npm registry 上最新只有 0.3.6。其余 4 个平台子包均已发布 0.3.7:

平台子包 最新版本
-darwin-arm64 0.3.7
-darwin-x64 0.3.7
-linux-x64 0.3.7
-linux-arm64 0.3.7
-win32-x64 0.3.6

→ npm 找不到 win32-x64@0.3.7 → 子包未安装 → 找不到 .exe → 报错。

影响

Windows 用户无法安装 0.3.7,只能降级 0.3.6。

环境

  • OS: Windows 11 x64
  • Node: v24.18.0 / npm: v11.16.0

期望

发布 `@sleepinsummer/agent-browser-cli-win32-x64@0.3.7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions