We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8c28d6 commit 8c2508bCopy full SHA for 8c2508b
.github/workflows/deploy.yml
@@ -44,7 +44,7 @@ jobs:
44
- name: Setup Pages
45
uses: actions/configure-pages@v4
46
- name: Install dependencies
47
- run: npm ci # 或 pnpm install / yarn install / bun install
+ run: npm install --legacy-peer-deps # 修改这行,添加 --legacy-peer-deps 参数
48
- name: Build with VitePress
49
run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
50
- name: Upload artifact
vercel.json
@@ -1,6 +1,6 @@
1
{
2
"buildCommand": "npm run docs:build",
3
"outputDirectory": "docs/.vitepress/dist",
4
- "installCommand": "npm install",
+ "installCommand": "npm install --no-frozen-lockfile",
5
"framework": "vitepress"
6
}
0 commit comments