diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 77c92a3960a2c367eab3ec028b4f4cb76ee6af3c..bd46afa088d590ca4f47a9973e8b98eb38e22878 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,8 @@ cache:
 
 test:
   script:
-  - apk --update add bower
+  - apk --update add npm
+  - npm install -g bower
   - bundle install --path vendor
   - bower install
   - bundle exec middleman build
@@ -15,7 +16,8 @@ test:
 
 pages:
   script:
-  - apk --update add bower
+  - apk --update add npm
+  - npm install -g bower
   - bundle install --path vendor
   - bower install
   - bundle exec middleman build