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

Works with 

image: node:6.17.0 

Suggest an answer

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

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,032 views 4 22
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