From de3dd4c39666ca6cdef39aff6307043ffee711dd Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Sun, 3 Nov 2024 08:18:24 -0800 Subject: [PATCH] fix(shaka-lab-node): Fix Windows path to PowerShell (#66) After some upgrades, the path to PowerShell is no longer in the default PATH environment variable. This makes it explicit in the script that updates drivers. If the actual path to PowerShell on your system differs from the norm, set your global PATH environment variable appropriately. --- shaka-lab-node/windows/update-drivers.cmd | 1 + 1 file changed, 1 insertion(+) diff --git a/shaka-lab-node/windows/update-drivers.cmd b/shaka-lab-node/windows/update-drivers.cmd index 88ba698..b91b750 100755 --- a/shaka-lab-node/windows/update-drivers.cmd +++ b/shaka-lab-node/windows/update-drivers.cmd @@ -42,5 +42,6 @@ C:\Windows\System32\taskkill.exe /IM chromedriver-android.exe /F 2>&1 C:\Windows\System32\taskkill.exe /IM geckodriver.exe /F 2>&1 :: Update all drivers. +SET PATH=%PATH%;C:\Windows\System32\WindowsPowerShell\v1.0 call node_modules/.bin/webdriver-installer.cmd . if %errorlevel% neq 0 exit /b %errorlevel%