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

Adam Polak Mar 16, 2018

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

3 answers

1 accepted

0 votes
Answer accepted
Adam Polak Mar 18, 2018

For those having the same problem:

We had to change image from 

image: node:8


image: node:9.7.1 
0 votes
Philip Hodder Atlassian Team Apr 02, 2018

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
Pablo Morales Jun 04, 2018

doesn't work 

Miklos Szanyi Jul 25, 2018
- npm install -g yarn
0 votes I'm New Here Mar 26, 2019

Works with 

image: node:6.17.0 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,652 views 1 18
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