From 86dacd9998f30a09762b18e3de2c34cb5eb356d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellen=20K=C3=B6rbes?= <ellenkorbes@gmail.com> Date: Wed, 26 Jun 2019 14:42:12 +0200 Subject: [PATCH] fix(install): Add -UseBasicParsing to Windows installer I tried installing on Windows and got the following error: `Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first launch configuration is not complete. Specify the UseBasicParsing parameter and try again.` This commit fixes that. --- support/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/install.ps1 b/support/install.ps1 index 81216d75ba..47653069a2 100644 --- a/support/install.ps1 +++ b/support/install.ps1 @@ -124,7 +124,7 @@ md -Force $gardenTmpPath | Out-Null [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # Download and extract the archive to $gardenBinPath -$latestRelease = Invoke-WebRequest "https://github.com/garden-io/garden/releases/latest" -Headers @{"Accept"="application/json"} +$latestRelease = Invoke-WebRequest "https://github.com/garden-io/garden/releases/latest" -UseBasicParsing -Headers @{"Accept"="application/json"} # The releases are returned in the format {"id":3622206,"tag_name":"hello-1.0.0.11",...}, we have to extract the tag_name. $json = $latestRelease.Content | ConvertFrom-Json $latestVersion = $json.tag_name