-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
45 lines (41 loc) · 1.14 KB
/
Copy pathstart.bat
File metadata and controls
45 lines (41 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
setlocal EnableDelayedExpansion
echo =====================================
echo Application Launcher
echo =====================================
echo.
REM Check if package.json exists first
if not exist "package.json" (
echo ERROR: package.json not found!
echo Make sure you're running this from the correct directory.
echo.
pause
exit /b 1
)
REM Check if node_modules exists
if exist "node_modules\" (
echo [OK] node_modules directory found
echo [INFO] Starting application with npm start...
echo.
call npm start
REM Check if npm start was successful
if !errorlevel! neq 0 (
echo.
echo [ERROR] npm start failed with error code !errorlevel!
pause
exit /b !errorlevel!
)
) else (
echo [WARNING] node_modules directory not found!
echo.
echo This usually means dependencies haven't been installed yet.
echo Please run 'install.bat' first to install all required dependencies.
echo.
echo Steps to fix this:
echo 1. Run install.bat
echo 2. Wait for installation to complete
echo 3. Run this script again
echo.
pause
exit /b 1
)