diff --git a/Makefile b/Makefile index 0230b245..e76f35a3 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,10 @@ endif @echo "==> installing js dependencies" ifeq ($(CI), true) - @(cd ${currentDir} && npm install --unsafe-perm=true) - @(cd ${currentDir}/web && npm install --unsafe-perm=true) - @(cd ${currentDir}/browser && npm install --unsafe-perm=true) - @(cd ${currentDir}/jslib && npm install --unsafe-perm=true) + @(cd ${currentDir} && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) + @(cd ${currentDir}/web && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) + @(cd ${currentDir}/browser && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) + @(cd ${currentDir}/jslib && npm ci --cache $(NPM_CACHE_DIR) --prefer-offline --unsafe-perm=true) else @(cd ${currentDir} && npm install) @(cd ${currentDir}/web && npm install)