-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-node.bat
More file actions
38 lines (34 loc) · 800 Bytes
/
check-node.bat
File metadata and controls
38 lines (34 loc) · 800 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
@echo off
echo Checking Node.js installation...
echo.
node -v >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Node.js is NOT installed or not in PATH
echo.
echo Please install Node.js from: https://nodejs.org/
echo.
echo After installation, close and reopen this terminal, then run this script again.
pause
exit /b 1
) else (
echo [OK] Node.js is installed
node -v
)
npm -v >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] npm is NOT available
pause
exit /b 1
) else (
echo [OK] npm is installed
npm -v
)
echo.
echo Node.js installation verified successfully!
echo.
echo You can now run:
echo install.bat - to install dependencies
echo setup-db.bat - to setup the database
echo start.bat - to start the application
echo.
pause