Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Yarn install fails

Yarn install fails on random package but always shows same kind of error "Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, "

Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/usr/local/share/.cache/yarn/v6/npm-@babel-core-7.12.10-b79a2e1b9f70ed3d84bbfb6d8c4ef825f606bccd-integrity/node_modules/@babel/core/lib/transform-ast.js'"

It seems to working in any machine except the bitbucket pipeline I have issues with.

2 answers

I see this issue consistently on bitbucket pipelines and never on the local with same code.

Workaround is to set network concurrency to 1 for yarn, which is not ideal as it drastically slows the install process: `yarn install --network-concurrency 1`

0 votes

Hi @Balakrishnan S ,

Does the issue occur on every build or is it random failures?

Are you able to reproduce this error if you debug the build locally with Docker, as per the following documentation?

I would suggest debugging this locally as per the instructions above, by taking a clone of the repo, reset to a commit where you had a failed build with this error, and then test it with a Docker container that uses the same image as your Pipelines build.

If the same issue occurs when you debug this locally with Docker, this would indicate that the issue is most likely related to either the Docker image used for the build, the configuration or a dependency.

Please feel free to let me know how it goes.

Kind regards,
Theodora

It happens for me all the time and I have moved to npm

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

65 views 4 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

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

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you