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

bitbucket-pipelines throws bash: yarn: command not found

Jorge Pausa
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!
April 11, 2022

 

We are using docker node image node:16.14-alpine3.14. The description says it contains yarn installed. But when we run the pipelines we get the following error

 

Screenshot at Apr 11 12-31-20.png

 

1 answer

1 accepted

1 vote
Answer accepted
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 12, 2022

Hi, @Jorge Pausa, welcome to the community! 

I tested this on my side and, when using the image you shared with us (node:16.14-alpine3.14), I was able to run the yarn install without errors. Could you please confirm if this is the image you have run in your pipelines? 

In case you are using this image, you can also run the following commands to install it: 

- apk update
- apk add yarn
- yarn install

Please let me know how it goes and feel free to share any additional information regarding this case.

Kind regards, 
Caroline 

Jorge Pausa
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!
April 13, 2022

Hello Caroline! Thank you for your answer. I realized that I was using another image for these steps. I replace it for the right one and it worked. Sorry for the confusion.

Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2022

Hi, Jorge! Thanks for the information, I'm glad to know everything is working now. 

Like Jorge Pausa likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events