ClaudeCode启动报错

安装claude code出现成功,调用claude出现报错:

Unable to connect to Anthropic services

Failed to connect to api.anthropic.com: ERR_BAD_REQUEST

Please check your internet connection and network settings.

Note: Claude Code might not be available in your country. Check supported

countries at https://anthropic.com/supported-countries

解决办法:

1、打开claude.json

2 、在文档末尾加上 hasCompletedOnboarding": true:

加上后你可能会出现新的错误

Configuration Error

The configuration file at /Users/shine/.claude.json contains invalid JSON.

Expected ',' or '}' after property value in JSON at position 208 (line 6

column 5)

解决办法:刚刚加的那一行上面忘记加逗号了,加上,

注意是英文的逗号

相关推荐
桃气媛媛2 小时前
python推导式
python
福运常在2 小时前
股票数据API(14)股票近年增发数据
java·python·maven
Zhansiqi10 小时前
day42部分题目
python
小王不爱笑13210 小时前
IO 模型
开发语言·python
kishu_iOS&AI10 小时前
Conda 简要说明与常用指令
python·安全·conda
小陈工10 小时前
FastAPI性能优化实战:从每秒100请求到1000的踩坑记录
python·性能优化·django·flask·numpy·pandas·fastapi
知我Deja_Vu10 小时前
【避坑指南】ConcurrentHashMap 并发计数优化实战
java·开发语言·python
njidf10 小时前
用Python制作一个文字冒险游戏
jvm·数据库·python
呆呆小孩10 小时前
Anaconda 被误删抢救手册:从绝望到重生
python·conda