Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do i cache "node_modules" of packages when using "lerna"?

Vitalik Zaidman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2018
So I have a "lerna" monorepo. i can cached the main "node_modules" in the root directory using "caches: - node" but when i run "lerna bootstrap" to install the inner node_modules ("/packages/((some_package))/node_modules") it is not cached.

2 answers

0 votes
Ido Tulman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2020

I am also encountered this. Is there any solution?

0 votes
Rene-Pier Deshaies-Gelinas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 11, 2020

I'm also very curious about this as it would speed up my build tasks by a pretty big factor.

I've personally tried using custom cache like: https://gist.github.com/RPDeshaies/57d92a71f0a0c9d5594fdc10780fa512

But it still doesn't seem to work fully since my local environments install my dependencies in 4s while Bitbucket does it in ~50s.

Any advice on this Atlassian ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events