diff --git a/scripts/jenkins.sh b/scripts/jenkins.sh
index 866b14d6ed..a0e88e4d14 100755
--- a/scripts/jenkins.sh
+++ b/scripts/jenkins.sh
@@ -10,6 +10,9 @@ set -x
 
 npm install
 
+# apparently npm 3.10.3 on node 6.4.0 doesn't upgrade #develop target with npm install unless explicitly asked.
+npm install olm
+
 # check out corresponding branches of dependencies.
 #
 # clone the deps with depth 1: we know we will only ever need that one
@@ -18,9 +21,6 @@ npm install
 # just reset it back.
 `dirname $0`/fetch-develop.deps.sh --depth 1
 
-# apparently npm 3.10.3 on node 6.4.0 doesn't upgrade #develop target with npm install unless explicitly asked.
-npm install olm
-
 # install olm. A naive 'npm i ./olm/olm-*.tgz' fails because it uses the url
 # from our package.json (or even matrix-js-sdk's) in preference.
 #