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
For those having the same problem:
We had to change image from
image: node:8
to
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works with
image: node:6.17.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
doesn't work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
- npm install -g yarn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.