docs: 整理Bug

This commit is contained in:
TYt50
2026-01-28 15:08:46 +08:00
parent 03225746f6
commit 30700a9724
2 changed files with 23 additions and 14 deletions

View File

@@ -1,38 +1,38 @@
@echo off
setlocal enabledelayedexpansion
echo ==========================================
echo 2FA 账号工具 - 一键环境安装
echo 2FA ACCOUNT TOOL - Setup Utility
echo ==========================================
echo.
:: 检查 Node.js 是否安装
:: Check for Node.js
node -v >nul 2>&1
if %errorlevel% neq 0 (
echo [错误] 未检测到 Node.js 环境!
echo 请先安装 Node.js (建议 LTS 版本): https://nodejs.org/
echo [ERROR] Node.js is not installed!
echo Please download and install Node.js from https://nodejs.org/
pause
exit /b
)
echo [1/2] 正在清理旧的依赖缓存...
echo [1/2] Cleaning up old installation files...
if exist node_modules (
rd /s /q node_modules
)
echo [2/2] 正在安装项目依赖...
echo [2/2] Installing dependencies (npm install)...
call npm install
if %errorlevel% neq 0 (
echo.
echo [错误] 依赖安装失败,请检查网络连接。
echo [ERROR] Dependency installation failed.
echo Please check your internet connection.
pause
exit /b
)
echo.
echo ==========================================
echo 安装完成!现在可以运行 start.vbs 启动应用。
echo SETUP SUCCESSFUL!
echo You can now run 'start.vbs' to launch.
echo ==========================================
echo.
pause