| 123456789101112131415161718192021222324252627282930 |
- @echo off
- chcp 65001 >nul
- title Install Node.js Dependencies
- cd /d "%~dp0\..\..\.."
- set "NODE_DIR=%~dp0..\..\node"
- set "PATH=%NODE_DIR%;%NODE_DIR%\node_modules\.bin;%PATH%"
- if not exist "%NODE_DIR%\node.exe" (
- echo [ERROR] nodejs\node\node.exe not found.
- echo Run nodejs\bootstrap-npm.js first if node_modules is missing.
- echo.
- pause
- exit /b 1
- )
- "%NODE_DIR%\node.exe" "%~dp0nodejs-dependencies-install.js" %*
- if errorlevel 1 (
- echo.
- echo [ERROR] Install failed
- echo.
- pause
- exit /b 1
- ) else (
- echo.
- echo [OK] Install completed
- echo.
- pause
- exit /b 0
- )
|