mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-06-04 13:30:32 +08:00
docs: update Air installation command from cosmtrek/air to air-verse/air
This commit is contained in:
@@ -116,7 +116,7 @@ make dev-frontend # 修改前端代码自动热重载(无需重启)
|
||||
### 1. 安装 Air
|
||||
|
||||
```bash
|
||||
go install github.com/cosmtrek/air@latest
|
||||
go install github.com/air-verse/air@latest
|
||||
```
|
||||
|
||||
### 2. 创建配置文件
|
||||
|
||||
@@ -45,7 +45,7 @@ make dev-frontend
|
||||
|
||||
```bash
|
||||
# 安装 Air
|
||||
go install github.com/cosmtrek/air@latest
|
||||
go install github.com/air-verse/air@latest
|
||||
|
||||
# 确保在 PATH 中
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
|
||||
@@ -127,7 +127,7 @@ if command -v air &> /dev/null; then
|
||||
log_success "Air 已安装(支持热重载)"
|
||||
else
|
||||
log_warning "Air 未安装(可选,用于热重载)"
|
||||
log_info "安装命令: go install github.com/cosmtrek/air@latest"
|
||||
log_info "安装命令: go install github.com/air-verse/air@latest"
|
||||
fi
|
||||
|
||||
# 检查 npm
|
||||
|
||||
Reference in New Issue
Block a user