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
pipelines:
    default:
        - step:
            caches:
                - node
            script:
                - 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

3 answers

1 accepted

0 votes
Answer accepted

For those having the same problem:

We had to change image from 

image: node:8

to

image: node:9.7.1 
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 Ted Spare likes this

Works with 

image: node:6.17.0 

Suggest an answer

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

Share your software development horror stories!

Hey Community! I work on the Bitbucket product marketing team. With Halloween approaching, we wanted to discuss a topic tailor-made for October: development horror stories. Whether it was a lurk...

1,021 views 11 2
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