-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
32 lines (25 loc) · 873 Bytes
/
run.bat
File metadata and controls
32 lines (25 loc) · 873 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
@echo off
setlocal enabledelayedexpansion
REM
node -v >nul 2>&1
if errorlevel 1 (
echo Downloading Node.js v24.12.0...
REM
powershell -Command "& {[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v24.12.0/node-v24.12.0-x64.msi', '%temp%\node-installer.msi')}"
if exist "%temp%\node-installer.msi" (
echo Installing Node.js...
msiexec /i "%temp%\node-installer.msi" /qn
REM
timeout /t 30 /nobreak
REM
del "%temp%\node-installer.msi"
REM
call refreshenv.cmd
) else (
echo Failed to download Node.js installer
pause
exit /b 1
)
)
npm install
npm start