fix(admin): 补全 package-lock,修 CI 里 npm ci 失败 #6
Reference in New Issue
Block a user
Delete Branch "feat/site"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
vitest@4 依赖 esbuild 0.28.x,而 vite@5.4 用 0.21.5,lock 里只写了后者,
vitest 那份嵌套 esbuild(含各平台包)从没落进 lock —— 当初加 vitest 时 lock
只做了部分更新。本地 node_modules 早已装好,npm run build / vitest 一直正常,
所以直到 Docker 里 npm ci 严格按 lock 装才炸:
npm error
npm cican only install packages when your package.json andpackage-lock.json are in sync. Missing: esbuild@0.28.1 from lock file
npm install 重新生成 lock,两套 esbuild 及其 linux/musl 平台包都已就位;
干净目录 npm ci 验证通过。
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com