Hi,
My build script looks like
version: 2
jobs:
build:
working_directory: ~/project
docker:
- image: circleci/node:10.15.3-browsers
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: JOBS=1 npm test # JOBS=1 because babel transpiler tries to start as many workers as it can https://github.com/emberjs/ember.js/issues/15641
Unfortunately when I run it fails on cache restore with errors like:
tar: root/project/node_modules/table/node_modules/lodash/xorBy.js: Cannot open: Permission denied
tar: root/project/node_modules/table/node_modules/lodash/xorWith.js: Cannot open: Permission denied
tar: root/project/node_modules/table/node_modules/lodash/zip.js: Cannot open: Permission denied
tar: root/project/node_modules/table/node_modules/lodash/zipObject.js: Cannot open: Permission denied
Any idea why?