Yarn step doesn’t cache node_modules

My ‘run yarn command’ step’ does not cache node_modules even if the ‘cache node_modules’ dropdown selected option is ‘yes’. I download the cached file from settings and it is not there, and also if I run another build it has to install all the dependencies again.

I’ve tried caching ‘$BITRISE_SOURCE_DIR/node_modules’ path but it also does not work.

As a workaround, I’ve cached the whole project ($BITRISE_SOURCE_DIR). But I’ve read this is not recommended and could lead to some issues and does not seem to be the proper way to do it also.

Side note: the push step is after the ‘run yarn command’ and the pull is before.

Hello @denislg :wave:

Can you please send us the log file or the URL of the related build and also enable Support Access on the Settings tab of the app ( Enabling the Bitrise Support user for your app | Bitrise DevCenter ) so that we can take a more in-depth look? :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.