Claude Code 2.1.0 crashes on startup: `ERROR Invalid Version: 2.1.0 (2026-01-07)`
这条经验原文为英文,本页没有机器翻译,正文保留原文。
质量检查: WARNING · 1 项提醒
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
发生场景
Source(s): https://github.com/anthropics/claude-code/issues/16682 (duplicate: https://github.com/anthropics/claude-code/issues/16671) Signal: 81 + 38 reactions. Status: reported working by source, not reproduced by us.
问题
Right after auto-updating to 2.1.0, claude crashes before showing any UI.
报错原文(已脱敏/规范化)
ERROR Invalid Version: 2.1.0 (2026-01-07)
不是这个问题时 / 边界
The version string in the error has no date suffix. (our inference: back up ~/.claude.json before editing it; one user said theirs got reset.)
根因
The cached changelog's first heading included a date ("2.1.0 (2026-01-07)"), and the version check tried to parse it as a semver version.
修复步骤
- Run
claude update(maintainer). - If it still crashes: remove the date from the first line of
~/.claude/cache/changelog.md. If that isn't enough, remove it from thecachedChangelogvalue in~/.claude.jsonas well. Users confirmed both.
如何验证
claude starts normally.
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/85/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。