diff --git a/tasks/e2e.sh b/tasks/e2e.sh
index 557b48ccda22a9f8966f44e5347986c76d0969d5..58e6ad53ee8cb45324e298eecd747896b5d46c84 100755
--- a/tasks/e2e.sh
+++ b/tasks/e2e.sh
@@ -56,7 +56,7 @@ root_path=$PWD
 if [ "$USE_YARN" = "yes" ]
 then
   # Install Yarn so that the test can use it to install packages.
-  npm install -g yarn
+  npm install -g yarn@0.17.10 # TODO: remove version when https://github.com/yarnpkg/yarn/issues/2142 is fixed.
   yarn cache clean
 fi