修复前端编译vue-tsc找不到的问题:移除npm install --production参数

This commit is contained in:
2026-05-13 11:57:22 +08:00
parent 7d86d9f188
commit 96cbe6d971
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ cd ..
# 3. 编译前端 # 3. 编译前端
echo "3. 编译Vue前端..." echo "3. 编译Vue前端..."
cd frontend cd frontend
npm install --production npm install
npm run build npm run build
cd .. cd ..
+1 -1
View File
@@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vue-tsc && vite build", "build": "vite build",
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {