-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.bat
More file actions
39 lines (33 loc) · 850 Bytes
/
Setup.bat
File metadata and controls
39 lines (33 loc) · 850 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
34
35
36
37
38
39
@echo off
title Shop-Looper Setup
setlocal
echo ==========================================
echo Shop-Looper Dependency Setup
echo ==========================================
REM Always run from this script's directory
cd /d "%~dp0"
REM Check required tools first
where node >nul 2>nul
if errorlevel 1 (
echo [ERROR] Node.js is not installed or not in PATH.
echo Install Node.js, then run this file again.
exit /b 1
)
where npm >nul 2>nul
if errorlevel 1 (
echo [ERROR] npm is not installed or not in PATH.
echo Reinstall Node.js/npm, then run this file again.
exit /b 1
)
echo.
echo [INFO] Installing project dependencies from package.json...
call npm install
if errorlevel 1 (
echo.
echo [ERROR] npm install failed.
exit /b 1
)
echo.
echo [SUCCESS] Setup complete.
echo [INFO] You can now run: node index.js
exit /b 0