@echo off echo ======================================== echo TradeBrain AI CRM - 开发环境启动 echo ======================================== echo. REM 刷新环境变量 call refreshenv 2>nul || echo "refreshenv not available, using default path" REM 设置 Node.js 路径 set PATH=%PATH%;C:\Program Files\nodejs REM 检查 Node.js echo 检查 Node.js 版本... node --version if errorlevel 1 ( echo 错误: Node.js 未正确安装 pause exit /b 1 ) REM 检查 npm echo 检查 npm 版本... call npm --version if errorlevel 1 ( echo 错误: npm 未正确安装 pause exit /b 1 ) echo. echo 正在安装项目依赖... call npm install echo. echo 启动开发服务器... call npm run dev pause