From ca09a0be831a5bd5e094a5cdaf7bdf76e7b4fb71 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Fri, 6 Jul 2018 00:32:12 -0400 Subject: Update config.yml --- .circleci/config.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08d355bb5..0cbbaf2e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -104,11 +104,15 @@ jobs: key: dependency-cache-{{ checksum "package-lock.json" }} - run: name: Install deps via npm - command: npm install + command: | + if [ ! -d node_modules ]; then + sudo npm install -g npm@$NPM_VERSION + npm ci + fi - save_cache: key: dependency-cache-{{ checksum "package-lock.json" }} paths: - - ./node_modules + - node_modules prep-deps-firefox: docker: -- cgit v1.2.3