From ad5aeb4f98f40bad1464b0ee8b3cf2bad9c830d0 Mon Sep 17 00:00:00 2001 From: jingrow Date: Mon, 3 Nov 2025 21:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dev=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev.sh b/dev.sh index b68f2b6..d71b705 100755 --- a/dev.sh +++ b/dev.sh @@ -127,6 +127,12 @@ check_deps() { cd apps/jingrow/frontend && npm install && cd ../.. fi + # 即使 node_modules 存在,也校验 vite 是否可用(可能之前安装不完整) + if [ ! -x "apps/jingrow/frontend/node_modules/.bin/vite" ]; then + warn "未检测到 vite,可执行文件缺失,重新安装前端依赖..." + (cd apps/jingrow/frontend && npm install) + fi + # 检查后端依赖(优先使用 uv) info "同步后端依赖 (uv)..." if [ -f "apps/jingrow/pyproject.toml" ]; then