/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
tools/bootstrap/node.bat
26 строк
758 B
DamianX
tgui 4 (#30535)
07 сен 2021, 18:15
Не верифицирован
07 сен 2021, 18:15
9fc6406
Код
Авторство
О чём код?
@echo off where node.exe >nul 2>nul if %errorlevel% == 0 ( echo | set /p printed_str="Using system-wide Node " call node.exe --version call node.exe %* goto exit_with_last_error_level ) call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Download-Node for /f "tokens=* USEBACKQ" %%s in (` call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Get-Path `) do ( set "PATH=%%s;%PATH%" ) where node.exe >nul 2>nul if %errorlevel% == 0 ( echo | set /p printed_str="Using vendored Node " call node.exe --version call node.exe %* goto exit_with_last_error_level ) echo "node.bat: Failed to bootstrap Node!" %COMSPEC% /c exit 1 :exit_with_last_error_level if not %errorlevel% == 0 %COMSPEC% /c exit %errorlevel% >nul