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)

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

注意是英文的逗号

相关推荐
幻影123!5 小时前
从零训练一个会下五子棋的AI
python·深度学习·神经网络·强化学习·五子棋·alpha zero·mokugo
Python私教6 小时前
Django 接入 AI 大模型实战:从零做一个流式聊天网站
人工智能·python·django
Python私教6 小时前
Django 接入 MCP 实战:让 AI 安全调用数据库和业务接口
人工智能·python·django
Python私教6 小时前
Django 搭建 AI 本地知识库:文档上传、向量检索与智能问答
人工智能·python·django
always_TT7 小时前
【Python 日志记录:logging 模块入门】
开发语言·python·php
lipku9 小时前
数字人直播开源项目LiveStream
python·开源·数字人·数字人直播
阿童木写作10 小时前
Python实现亚马逊商品图批量智能抠图教程
人工智能·python
axinawang10 小时前
第24课:while循环的应用
python
三亚兴嘉装饰10 小时前
三亚服装店装修
python
小柯南敲键盘10 小时前
速卖通AI图片翻译API集成实战
人工智能·python