From 197a2de5f7e35fec82c35fcf5d14464cec78bccd Mon Sep 17 00:00:00 2001 From: Aleksej Komarov Date: Fri, 28 Jan 2022 19:19:43 +0200 Subject: [PATCH] Always use vendored NodeJS on Windows (#64461) As @SpaceManiac said: A big part of the point of the bootstrap scripts is to provide a reproducible environment Here I am, web-removing the bit of code that allows using a system-wide version of NodeJS. Now we're vendored only. --- tools/bootstrap/node.bat | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/bootstrap/node.bat b/tools/bootstrap/node.bat index fc1441b156c..d934eadc8ca 100644 --- a/tools/bootstrap/node.bat +++ b/tools/bootstrap/node.bat @@ -1,11 +1,4 @@ @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