移除 --legacy-peer-deps,让 npm 自动安装 peer dependencies
Some checks failed
构建并部署前端到生产环境 / build-and-deploy (push) Failing after 4s

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-11 15:45:46 +08:00
parent 038334630e
commit b247e1873d

View File

@@ -16,7 +16,7 @@ RUN npm config set registry https://registry.npmmirror.com
COPY package.json ./
# 安装所有依赖
RUN npm install --legacy-peer-deps
RUN npm install
# 复制源代码
COPY . .