diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 44edc64b0c3084a104d0d0b8ba4192a612802672..70cdb1e2f3e09e34535d53732b2c91b77a903475 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ build:
   script:
     - apt-get install -y --force-yes build-essential python-dev python-pip git nodejs nodejs-legacy npm
     - pip install --editable .
-    - cd content && npm install
+    - cd content && npm install && cd ..
     - pelican content
 
   artifacts: