-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_labos.bat
More file actions
33 lines (28 loc) · 776 Bytes
/
Copy pathstart_labos.bat
File metadata and controls
33 lines (28 loc) · 776 Bytes
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
@echo off
setlocal
REM ---- Locate Node.js ----
if not defined NODE_PATH (
if exist "C:\Program Files\nodejs\node.exe" set "PATH=C:\Program Files\nodejs;%PATH%"
if exist "C:\Program Files (x86)\nodejs\node.exe" set "PATH=C:\Program Files (x86)\nodejs;%PATH%"
)
where node >nul 2>nul
if errorlevel 1 (
echo Node.js not found. Please install from https://nodejs.org and try again.
pause
exit /b 1
)
REM ---- Install dependencies if needed ----
if not exist "node_modules" (
echo Installing dependencies...
npm.cmd install
if errorlevel 1 (
echo npm install failed. Check errors above.
pause
exit /b 1
)
)
REM ---- Start dev server and open browser ----
start "" http://localhost:8080
echo Starting LabOS dev server...
npm.cmd run dev
endlocal