Repository navigation
build(package.json): canvas 改成可选依赖,Windows on Arm 上装得完 - #419
Merged
Merged
Conversation
- canvas 3.2.3 没有 win32-arm64 的预编译包,安装脚本转去 node-gyp 编译,机器上没有 Python 和编译工具链时失败, 整个 `pnpm install` 以退出码 1 结束,README 的快速开始在 Arm 的 Windows 上走不通。 - 只有 prismarine-viewer 用到它,而 viewer 是按需加载的,起不来只记一条警告(src/worlds/minecraft/bridge.ts)。 作为可选依赖,编译失败时 pnpm 跳过它继续装。有预编译包的平台装出来的东西不变。 - 验证:Windows 11 Arm64(QEMU 仿真的虚拟机)、Node 22.23.2 arm64 上,改之前 `pnpm install` 退出码 1, 改之后退出码 0;`pnpm start mybot` 起来 WebUI,接上 llama.cpp 端点后模型调用和 write_file、edit_file 正常。 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- docs/windows.md 的 owner 不含 package.json,那一条删掉;canvas 可选、编译不成就跳过写进 owner 含 package.json 的 docs/development.md。 - viewer 要 canvas、没装上时起不来只记警告,写进 Minecraft World 自己的 README,共享的 Windows 页 不描述某个 World 的行为。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


README 的快速开始(
corepack pnpm install、pnpm start)在 Windows on Arm 上走不通:pnpm install以退出码 1 结束。改动
canvas从dependencies挪到optionalDependencies,锁文件随之更新。gyp ERR! find Python),整个安装随之失败。src/worlds/minecraft/bridge.ts)。作为可选依赖,编译失败时 pnpm 跳过它继续装。docs/development.md写 canvas 是可选依赖、没有预编译包的平台编译不成就跳过;src/worlds/minecraft/README.md讲画面的那节写 viewer 要 canvas,没装上时起不来、只记警告。不做的:给 llamacpp 的发行表补
opencl-adreno-arm64后端;ci.yml加windows-11-arm。实测
本机没有 Arm 真机,用 QEMU 在 x64 上仿真了一台 Windows 11 Arm64(26300)虚拟机,Node 22.23.2 arm64。
corepack pnpm install在 canvas 的安装脚本上失败,退出码 1。pnpm start mybot构建出 WebUI(esbuild 和 tailwind 的 arm64 包正常)、建好默认部署,http://127.0.0.1:7788/就绪。llamacpp端点(外部模式,指向另一台机器上的 llama-server)并设为 active 后,/api/status里连接就绪;控制台发一句话,模型被调用,write_file、edit_file在工作区写出了文件。没验的
cuda-13.4/cpu运行时。检查
pnpm run typecheck、pnpm test(5221 通过 4 跳过)本地通过;x64 上corepack pnpm install通过。🤖 Generated with Claude Code