diff --git a/.travis.yml b/.travis.yml
index af738bb429..9720d8872f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,4 +4,4 @@ node_js:
 install:
     - npm install
     - (cd node_modules/matrix-js-sdk && npm install)
-    - (cd node_modules/matrix-react-sdk && npm run build)
+    - (cd node_modules/matrix-react-sdk && npm install)
diff --git a/scripts/jenkins.sh b/scripts/jenkins.sh
index 5ccc199164..0f4fac2513 100755
--- a/scripts/jenkins.sh
+++ b/scripts/jenkins.sh
@@ -20,8 +20,8 @@ rm -r node_modules/olm
 cp -r olm/package node_modules/olm
 
 # we may be using dev branches of js-sdk and react-sdk, in which case we need to build them
-(cd node_modules/matrix-js-sdk && npm run build)
-(cd node_modules/matrix-react-sdk && npm run build)
+(cd node_modules/matrix-js-sdk && npm install)
+(cd node_modules/matrix-react-sdk && npm install)
 
 # run the mocha tests
 npm run test