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: command not found

Since about 12PM we're receiving an error: 

bash: yarn: command not found

We're using default node:8 image

image: node:8
        - step:
                - node
                - yarn install
                - yarn run flow
                - yarn run build
                - yarn run test --coverage --no-cache

 Does anything changed between 10AM and 12PM - last success build on the same pipelines config was at 10:20AM

4 answers

1 accepted

0 votes
Answer accepted

For those having the same problem:

We had to change image from 

image: node:8


image: node:9.7.1 

For me it turned out that I accidentally redefined $PATH in bitbucket pipelines environment variables, causing the same message. Took a while to figure it out...

Works with 

image: node:6.17.0 
0 votes

Alternatively, for anyone using an image that doesn't have yarn installed you can also install it as part of your build.

For example, add an installation command to your script such as:

- npm install yarn
- npm install -g yarn
Like # people like this

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,884 views 10 16
Read article

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