Files
Bubberstation/tools/bootstrap/node.bat
SkyratBot ece4a9bb7d [MIRROR] Change NodeJS on Windows to 64-bit, downgrade to v14.16.1 [MDB IGNORE] (#11113)
* Change NodeJS on Windows to 64-bit, downgrade to v14.16.1 (#64513)

* Change bootstrapped NodeJS on Windows from 32-bit to 64-bit

* Last node version to support Win7

* Skip platform check

Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>

* Change NodeJS on Windows to 64-bit, downgrade to v14.16.1

Co-authored-by: William Wallace <me@wiox.me>
Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>
2022-02-08 02:16:51 +00:00

21 lines
609 B
Batchfile

@echo off
set NODE_SKIP_PLATFORM_CHECK=1
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