Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,237
Community Members
 
Community Events
168
Community Groups

Bitbucket Pipelines 401 error when using yarn

I am getting 401s when trying to install yarn with a bitbucket pipeline. I am trying to install yarn 0.24.4

1 comment

image: node:6.9.0

pipelines:
  default:
    - step:
        script:
          - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.24.4 # install yarn
          - export PATH=$HOME/.yarn/bin:$PATH
          - yarn install --pure-lockfile
          - node_modules/.bin/bower install --allow-root
          - yarn run test-fast

I am getting these errors in bitbucket pipelines

Request failed \"401 Unauthorized\"". this is using artifactoryonline

I've been doing it this way:

pipelines:
  default:
    - step:
        script:
          - npm install -g yarn
          - yarn install

I'm curious to see if i'm missing something here. Whats the difference between using curl versus npm in this case?

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events