技巧多源确认精选

用简单脚本确认claude二进制使用的Bun版本

精选理由

想确认claude用的Bun版本?照这个搞个脚本跑一下就行,不用翻文档。

Simon Willison分享了一个技巧:通过预加载脚本打印出claude二进制捆绑的Bun版本。只需创建包含console.

正文

log("embedded bun:", Bun.version)的TypeScript脚本,设置环境变量BUN_OPTIONS="--preload=/tmp/bun-version.

ts",然后运行claude --version即可看到版本号。当前显示为1.

4.0,即Bun的Rust版canary版本。

这个方法比手动查找更直接可靠。

原文 · Simon Willison

Here's a better way of confirming the Bun version that's used by the "claude" binary: AjanRaj @ajanraj25 you can also just preload a tiny script to print the bundled Bun version: cat > /tmp/bun-version.ts <<'EOF' console.log("embedded bun:", Bun.version); process.exit(0); EOF BUN_OPTIONS="--preload=/tmp/bun-version.ts" claude --version this shows 1.4.0, which is the Rust version of Bun currently in canary. 🔗 View Quoted Tweet📊 3 ⚡

产业坐标与信源核验

本条情报归属 AITOP「技巧」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:claude、Bun、命令行技巧、编程助手,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「Simon Willison」(@simonw),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 4 家独立信源对该事件进行交叉印证与跟进报道(含 Viking、Geek、elvis 等),属于近期高关注度行业信号。

发现摘要或翻译有误? 告诉我们