diff --git a/tasks/e2e-installs.sh b/tasks/e2e-installs.sh index 064a4e30f0a..0bdbbad6b56 100755 --- a/tasks/e2e-installs.sh +++ b/tasks/e2e-installs.sh @@ -86,7 +86,10 @@ root_path=$PWD # Clear cache to avoid issues with incorrect packages being used if hash yarnpkg 2>/dev/null then - yarn cache clean + # AppVeyor uses old version on yarn. + # Once updated to 0.24.3 or above install can be removed. + npm install -g yarn@latest + yarnpkg cache clean fi if hash npm 2>/dev/null diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index 157064a50fb..96b249c45c0 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -69,7 +69,10 @@ root_path=$PWD # Clear cache to avoid issues with incorrect packages being used if hash yarnpkg 2>/dev/null then - yarn cache clean + # AppVeyor uses old version on yarn. + # Once updated to 0.24.3 or above install can be removed. + npm install -g yarn@latest + yarnpkg cache clean fi if hash npm 2>/dev/null diff --git a/tasks/e2e-simple.sh b/tasks/e2e-simple.sh index 08e359517ed..abe3ce55878 100755 --- a/tasks/e2e-simple.sh +++ b/tasks/e2e-simple.sh @@ -68,7 +68,10 @@ root_path=$PWD # Clear cache to avoid issues with incorrect packages being used if hash yarnpkg 2>/dev/null then - yarn cache clean + # AppVeyor uses old version on yarn. + # Once updated to 0.24.3 or above install can be removed. + npm install -g yarn@latest + yarnpkg cache clean fi if hash npm 2>/dev/null