Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

2 answers

0 votes
Shane Fast
Contributor
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?

0 votes
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events