Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Pipelines 401 error when using yarn

mbelmont June 1, 2017

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

1 comment

mbelmont June 1, 2017
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

Shane Fast October 4, 2017

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
AUG Leaders

Atlassian Community Events