摘要:
一,配置相关的全局变量: $ sudo vi /etc/profile [sudo] password for liuhongdi: 在文件末尾增加: # claude code export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropi 阅读全文
posted @ 2026-03-08 22:41
刘宏缔的架构森林
阅读(121)
评论(0)
推荐(0)
摘要:
一,询问是否相信当前目录? 二,提示当前在home目录,应该在项目目录下启动 阅读全文
posted @ 2026-03-08 22:22
刘宏缔的架构森林
阅读(15)
评论(0)
推荐(0)
摘要:
一,报错信息: Unable to connect to Anthropic services Failed to connect to api.anthropic.com: ERR_BAD_REQUEST如图: 二,原因: 这是因为claude code首次启动时会检查用户地区 部分地区因法律原因 阅读全文
posted @ 2026-03-08 22:07
刘宏缔的架构森林
阅读(1224)
评论(0)
推荐(0)
摘要:
一,安装node和npm 二,安装claude npm install -g @anthropic-ai/claude-code 查看安装路径: $ whereis claude claude: /home/liuhongdi/.nvm/versions/node/v24.13.0/bin/clau 阅读全文
posted @ 2026-03-08 21:14
刘宏缔的架构森林
阅读(41)
评论(0)
推荐(0)
摘要:
一,代码: 说明: 使用async关键字,你可以在函数内部使用await关键字来等待另一个异步操作的完成,而不会阻塞当前线程的执行。 Future<String> getMyName() { //await Future.delayed(Duration(seconds: 2)); //函数内部不能 阅读全文
posted @ 2026-03-08 13:01
刘宏缔的架构森林
阅读(6)
评论(0)
推荐(0)
摘要:
一,代码: Future<String> getMyName() { return Future.delayed(Duration(seconds: 2), () => '老孟'); } void myclick() async{ //错误得到Future类型返回 var name = getMyN 阅读全文
posted @ 2026-03-08 12:32
刘宏缔的架构森林
阅读(7)
评论(0)
推荐(0)
摘要:
一,代码: //每1秒打印一下当前数字 void tick10() async { for (int i = 1; i <= 10; i++) { await Future.delayed(Duration(seconds: 1),(){ print("tick"+i.toString()); }) 阅读全文
posted @ 2026-03-08 10:44
刘宏缔的架构森林
阅读(5)
评论(0)
推荐(0)
浙公网安备 33010602011771号