昨天突然关机,重启后Claude code登录无反应,对话也无反应。 干什么都显示超时。
然后在终端输入 Claude ,提示如下
# claude
Claude Code could not start: Temp directory /tmp/claude-1000 is owned by uid 0, expected 1000. Refusing to use it — another user may have pre-created it. Set CLAUDE_CODE_TMPDIR to a directory you control, or ask an administrator to remove it.```
看起来是权限问题,导致临时文件无法写入,把这个临时文件删除即可
sudo rm -rf /tmp/claude-1000
删除后Claude code即可恢复。
0
3
3 条回复
排序