Go to file
2026-04-06 11:34:23 +08:00
.claude feat: 工作台前端界面 2026-04-05 23:40:42 +08:00
docs/superpowers feat: 工作台前端界面 2026-04-05 23:40:42 +08:00
local-nodemodules fix: 依赖问题 2026-04-03 14:32:29 +08:00
script feat: 服务中心前端界面 2026-04-03 20:28:59 +08:00
txw-common Initial commit 2026-04-05 15:05:13 +08:00
txw-gateway Initial commit 2026-04-05 15:05:13 +08:00
txw-gxzx Initial commit 2026-04-05 15:05:13 +08:00
txw-gxzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-kxtfwzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-mhzc Initial commit 2026-04-05 15:05:13 +08:00
txw-mhzc-web fix:修改外部链接地址 2026-04-06 11:34:23 +08:00
txw-sso Initial commit 2026-04-05 15:05:13 +08:00
txw-tzzx Initial commit 2026-04-05 15:05:13 +08:00
txw-tzzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-ytzx Initial commit 2026-04-05 15:05:13 +08:00
txw-ytzx-web Initial commit 2026-04-05 15:05:13 +08:00
txw-yygl Initial commit 2026-04-05 15:05:13 +08:00
txw-yygl-web Initial commit 2026-04-05 15:05:13 +08:00
.gitignore Initial commit 2026-04-05 15:05:13 +08:00
README.md fix: 依赖问题 2026-04-03 14:32:29 +08:00

碳信网 Web 项目本地开发指南

环境要求

  • Node.js >= 14建议 16+
  • Yarn >= 1.22

1. 安装依赖

node setup.js

脚本会自动为所有 web 项目创建本地包链接并安装依赖。Windows 和 Mac 通用。

如果网络不稳定,加 --prefer-offline 会优先从本地缓存获取包,速度更快。

2. 启动开发服务

# 以碳门户主页为例
cd txw-mhzc-web
yarn dev

其他项目同理:txw-gxzx-webtxw-kxtfwzx-webtxw-tzzx-webtxw-ytzx-webtxw-yygl-web

3. 项目说明

目录 说明
txw-gxzx-web 个人工作台
txw-kxtfwzx-web 科学碳体重中心
txw-mhzc-web 碳门户主页
txw-tzzx-web 碳资讯
txw-ytzx-web 碳云学堂
txw-yygl-web 运营管理
local-nodemodules 本地私有包ggzc-web 组件库)

4. 常见问题

Q: yarn install 报 @cssyq/ggzc-web not found

A: 需要先建立 symlink。执行第 1 步中的 for 循环即可。

Q: 启动报错 engine node incompatibility

A: 加 --ignore-engines 参数绕过。

Q: 需要更新 ggzc-web 组件库?

A: 修改 local-nodemodules/@cssyq/ggzc-web 后,直接 yarn dev 即可看到更新(已通过 symlink 关联)。