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)

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

注意是英文的逗号

相关推荐
小糖学代码19 小时前
LLM系列:环境搭建:5.Python-dotenv 环境变量管理
人工智能·python·深度学习·神经网络
智慧物业老杨20 小时前
智慧物业合同周期管理系统:从风险预警到智能交接的全流程数智化落地方案
java·人工智能·python
橙橙笔记20 小时前
Python的学习第一部分
python·学习
voidmort21 小时前
3. 微调(Fine-tuning)与强化学习(RL)的核心思想
python·深度学习·算法
biter down21 小时前
基于 Pywinauto 的 QQ 音乐 GUI 自动化测试实践
python
人道领域21 小时前
【LeetCode刷题日记】669.修剪二叉搜索树
开发语言·python·算法
EntyIU1 天前
mineru从安装部署到测试使用完整指南
python·ocr
安替-AnTi1 天前
厚朴 APK 搜索接口分析
python·apk·解析·taobao
山川湖海1 天前
AI时代快速学编程语言的陷阱(以Python为例)
大数据·人工智能·python
H Journey1 天前
Supervisor 进程管理工具介绍
python·supervisor·linux 运维