# How to get around issue where "circle.yml specified cache directories ... but they don't exist"

**URL:** <https://discuss.circleci.com/t/how-to-get-around-issue-where-circle-yml-specified-cache-directories-but-they-dont-exist/2030>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [February 10, 2016, 6:15pm UTC](https://discuss.circleci.com/t/how-to-get-around-issue-where-circle-yml-specified-cache-directories-but-they-dont-exist/2030 "2016-02-10T18:15:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naumanhafizrga](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@naumanhafizrga](https://discuss.circleci.com/u/naumanhafizrga)\
**Post date:** [February 10, 2016, 6:15pm UTC](https://discuss.circleci.com/t/how-to-get-around-issue-where-circle-yml-specified-cache-directories-but-they-dont-exist/2030/1 "2016-02-10T18:15:53Z")

</div>

i am trying to cache directories node\_modules and bower\_components, but they are within a checkout project path, ex. /home/ubuntu/circleci\_job/project\_name/bower\_components/

is there a way to get circleci to cache these subdirectories within the checked out repo? or do they have to be at the root ex. /home/ubuntu/nvm/?

---

<div class="post-metadata">

**Author:** ![sgrove](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sgrove/32/10896_2.png) [@sgrove](https://discuss.circleci.com/u/sgrove)\
**Post date:** [April 18, 2017, 10:33am UTC](https://discuss.circleci.com/t/how-to-get-around-issue-where-circle-yml-specified-cache-directories-but-they-dont-exist/2030/2 "2017-04-18T10:33:48Z")

</div>

Also would like to know this, as our build would be sped up quite a bit by figuring it out.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:31am UTC](https://discuss.circleci.com/t/how-to-get-around-issue-where-circle-yml-specified-cache-directories-but-they-dont-exist/2030/3 "2018-06-18T11:31:57Z")

</div>


