It's not the same without you


Atlassian Community Hero Image Collage

Pipelines: cache custom node_modules folder

Do I understand correctly that pre-defined `node` cache only works when node_modules and package.json are located in the root directory of a project? Then how do I configure bitbucket-pipelines.yml to make cache work with node_modules folder located in subfolder (./public/node_modules/)? 

1 answer

1 accepted

3 votes
Answer accepted

Managed to solve it



- step
- node-custom
- if [ ! -d "node_modules" ]; then npm install; fi

node-custom: public/node_modules

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server


423 views 0 9
Read article

Community Events


Find an event


Unfortunately there are no Community Events near you at the moment.

Host an event


Events near you