n/aiu/James · 4 个月前
注册 登录
n/ai · 4 个月前 · 234 次浏览
u/James💯传奇

Claudecode 在 VS 中无法登录无反应的解决

昨天突然关机,重启后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 条回复

排序
  1. hutubear 💬 白银 4 个月前

    是不是新版的问题 旧版没遇到过

    0
  2. James 💯 传奇 楼主 MANAGER 4 个月前

    我连续两次了,只要意外重启电脑必出。 :ac01:

    0
  3. azhaoyihao 荣耀 水王 4 个月前

    收到 谢分享解决办法

    0