geeklearningio / gl-vsts-tasks-yarn

Yarn Package Manager Visual Studio Team Services Build and Release Management extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sub-project's `yarn install` (called in `postinstall` of top project) gets 401s (despite seing the .npmrc file)

slawomir-brzezinski-at-clarksons opened this issue · comments

Are you reporting a bug or a feature request ?

  • Bug
  • Feature request

Description

Top level package.json has:

{
  ...
  "postinstall": "cd ./src/docs && yarn install --verbose",
  ...
}

and theres a ./docs/package.json that contains some dependencies.

On a dev machine, a yarn install on top level works perfectly fine (no need for ./docs/.npmrc even - it gets found in the ancestor) and installs all dependencies. The yarn.lock URLs show the repository from the .npmrc correctly both in top-level as well as in ./docs.

But in Azure Pipelines the task (both 2.0 and the 3.0 preview) produce an error:

2020-10-01T16:53:20.5690023Z error https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/clipboard/-/clipboard-2.0.6.tgz: Request failed "401 Unauthorized"

Expected behavior

No error, like on dev machine.

Reproduction

Start of the step, and a bit of top level project output:

2020-10-01T17:29:04.3573776Z ##[debug]Evaluating condition for step: 'Yarn Install'
2020-10-01T17:29:04.3576460Z ##[debug]Evaluating: succeeded()
2020-10-01T17:29:04.3577184Z ##[debug]Evaluating succeeded:
2020-10-01T17:29:04.3578457Z ##[debug]=> True
2020-10-01T17:29:04.3579708Z ##[debug]Result: True
2020-10-01T17:29:04.3580553Z ##[section]Starting: Yarn Install
2020-10-01T17:29:04.3589262Z ==============================================================================
2020-10-01T17:29:04.3589661Z Task         : Yarn task
2020-10-01T17:29:04.3589976Z Description  : Executes Yarn
2020-10-01T17:29:04.3590270Z Version      : 3.0.1999
2020-10-01T17:29:04.3590571Z Author       : Geek Learning
2020-10-01T17:29:04.3591290Z Help         : [More Information](https://github.com/geeklearningio/gl-vsts-tasks-yarn/wiki/Yarn) (Version 3.0.1999).

Dear Angular and Ember CLI users, please check our [known issues](https://github.com/geeklearningio/gl-vsts-tasks-yarn/wiki/Known-Issues)
2020-10-01T17:29:04.3592132Z ==============================================================================
2020-10-01T17:29:04.3713008Z ##[debug]Using node path: /home/vsts/agents/2.175.2/externals/node/bin/node
2020-10-01T17:29:04.5242770Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2020-10-01T17:29:04.5270360Z ##[debug]loading inputs and endpoints
2020-10-01T17:29:04.5276783Z ##[debug]loading INPUT_PROJECTDIRECTORY
2020-10-01T17:29:04.5290665Z ##[debug]loading INPUT_ARGUMENTS
2020-10-01T17:29:04.5295487Z ##[debug]loading INPUT_PRODUCTIONMODE
2020-10-01T17:29:04.5298081Z ##[debug]loading INPUT_CUSTOMREGISTRY
2020-10-01T17:29:04.5300813Z ##[debug]loading INPUT_CUSTOMFEED
2020-10-01T17:29:04.5303799Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-10-01T17:29:04.5307559Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-10-01T17:29:04.5310862Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-10-01T17:29:04.5331396Z ##[debug]loaded 8
2020-10-01T17:29:04.5346034Z ##[debug]Agent.ProxyUrl=undefined
2020-10-01T17:29:04.5348840Z ##[debug]Agent.CAInfo=undefined
2020-10-01T17:29:04.5350724Z ##[debug]Agent.ClientCert=undefined
2020-10-01T17:29:04.5352644Z ##[debug]Agent.SkipCertValidation=undefined
2020-10-01T17:29:04.7048873Z ##[debug]check path : /home/vsts/work/_tasks/Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3/3.0.1999/task.json
2020-10-01T17:29:04.7050087Z ##[debug]adding resource file: /home/vsts/work/_tasks/Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3/3.0.1999/task.json
2020-10-01T17:29:04.7050808Z ##[debug]system.culture=en-US
2020-10-01T17:29:04.7063445Z ##[debug]which 'yarn'
2020-10-01T17:29:04.7068446Z ##[debug]found: '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn'
2020-10-01T17:29:04.7077273Z ##[debug]arguments=--install --modules-folder /home/vsts/work/1/s/node_modules  --verbose --network-timeout 60000
2020-10-01T17:29:04.7080202Z ##[debug]projectDirectory=/home/vsts/work/1/s
2020-10-01T17:29:04.7080663Z ##[debug]customRegistry=useFeed
2020-10-01T17:29:04.7099099Z ##[debug]Getting Packaging service access points
2020-10-01T17:29:04.7099709Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/acmecloud/
2020-10-01T17:29:04.7100236Z ##[debug]System.ServerType=Hosted
2020-10-01T17:29:04.7100698Z ##[debug]Getting credentials for local feeds
2020-10-01T17:29:04.7119034Z SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.7119572Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.7119994Z ##[debug]Got auth token
2020-10-01T17:29:04.7124099Z ##[debug]System.ServerType=Hosted
2020-10-01T17:29:04.7126864Z ##[debug]Agent.ProxyUrl=undefined
2020-10-01T17:29:04.7176570Z ##[debug]Getting URI for area ID 4C83CFC1-F33A-477E-A789-29D38FFCA52E from https://dev.azure.com/acmecloud/
2020-10-01T17:29:04.8346641Z ##[debug]Getting credentials for local feeds
2020-10-01T17:29:04.8347465Z SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.8348242Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.8348997Z ##[debug]Got auth token
2020-10-01T17:29:04.8352312Z ##[debug]Agent.ProxyUrl=undefined
2020-10-01T17:29:04.8357180Z ##[debug]Acquiring Packaging endpoints from https://pkgs.dev.azure.com/acmecloud/
2020-10-01T17:29:04.9184356Z ##[debug]Successfully acquired the connection data
2020-10-01T17:29:04.9192752Z ##[debug]Acquired location
2020-10-01T17:29:04.9194185Z ##[debug]{"PackagingUris":["https://dev.azure.com/acmecloud/","https://pkgs.dev.azure.com/acmecloud/","https://pkgsprodsu3weu.pkgs.visualstudio.com/","https://pkgs.dev.azure.com/acmecloud/","https://acmecloud.pkgs.visualstudio.com/","https://pkgs.dev.azure.com/acmecloud/"],"DefaultPackagingUri":"https://pkgs.dev.azure.com/acmecloud/"}
2020-10-01T17:29:04.9195993Z ##[debug]/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn
2020-10-01T17:29:04.9197566Z ##[debug]Build.BuildId=180914
2020-10-01T17:29:04.9198020Z ##[debug]Agent.BuildDirectory=/home/vsts/work/1
2020-10-01T17:29:04.9199365Z ##[debug]testing directory '/home/vsts/work/1/npm'
2020-10-01T17:29:04.9200079Z ##[debug]testing directory '/home/vsts/work/1'
2020-10-01T17:29:04.9201064Z ##[debug]mkdir '/home/vsts/work/1/npm'
2020-10-01T17:29:04.9247772Z ##[debug]Found 2 registries in this account/collection
2020-10-01T17:29:04.9256709Z ##[debug]Getting credentials for local feeds
2020-10-01T17:29:04.9259306Z SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9259793Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9260190Z ##[debug]Got auth token
2020-10-01T17:29:04.9261966Z ##[debug]Getting credentials for local feeds
2020-10-01T17:29:04.9262851Z SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9263294Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9263684Z ##[debug]Got auth token
2020-10-01T17:29:04.9267618Z ##[debug]Using internal feed
2020-10-01T17:29:04.9268784Z ##[debug]customFeed=70953f4e-040d-11eb-adc1-0242ac120002
2020-10-01T17:29:04.9275559Z ##[debug]Getting registry url from https://pkgs.dev.azure.com/acmecloud/
2020-10-01T17:29:04.9276151Z ##[debug]Getting credentials for local feeds
2020-10-01T17:29:04.9276887Z SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9277336Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9277729Z ##[debug]Got auth token
2020-10-01T17:29:04.9651127Z ##[debug]Feed registry url: https://pkgs.dev.azure.com/acmecloud/_packaging/70953f4e-040d-11eb-adc1-0242ac120002/npm/registry
2020-10-01T17:29:04.9278112Z ##[debug]Agent.ProxyUrl=undefined
2020-10-01T17:29:04.9654020Z ##[debug]Getting credentials for local feeds
2020-10-01T17:29:04.9678162Z SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9678740Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-10-01T17:29:04.9679141Z ##[debug]Got auth token
2020-10-01T17:29:04.9680870Z ##[debug]Adding auth for registry: https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/
2020-10-01T17:29:04.9682622Z ##[debug]Adding auth for registry: https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/
2020-10-01T17:29:04.9685119Z ##[debug]Using registry: https://pkgs.dev.azure.com/acmecloud/_packaging/70953f4e-040d-11eb-adc1-0242ac120002/npm/registry/
2020-10-01T17:29:04.9686267Z ##[debug]Adding auth for registry: https://pkgs.dev.azure.com/acmecloud/_packaging/70953f4e-040d-11eb-adc1-0242ac120002/npm/registry/
2020-10-01T17:29:04.9688728Z ##[debug]which 'yarn'
2020-10-01T17:29:04.9692211Z ##[debug]found: '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn'
2020-10-01T17:29:04.9693483Z ##[debug]which 'yarn'
2020-10-01T17:29:04.9694993Z ##[debug]found: '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn'
2020-10-01T17:29:04.9698118Z ##[debug]ProductionMode=false
2020-10-01T17:29:04.9701064Z ##[debug]/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn arg: --install --modules-folder /home/vsts/work/1/s/node_modules  --verbose --network-timeout 60000
2020-10-01T17:29:04.9706525Z ##[debug]OverridingProjectNpmrc: /home/vsts/work/1/s/.npmrc
2020-10-01T17:29:04.9708749Z ##[debug]Agent.BuildDirectory=/home/vsts/work/1
2020-10-01T17:29:04.9711184Z ##[debug]Saving file /home/vsts/work/1/s/.npmrc
2020-10-01T17:29:04.9716405Z ##[debug]rm -rf /home/vsts/work/1/s/.npmrc
2020-10-01T17:29:04.9717707Z ##[debug]removing file
2020-10-01T17:29:04.9804216Z ##[debug]exec tool: /opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn
2020-10-01T17:29:04.9804833Z ##[debug]arguments:
2020-10-01T17:29:04.9806330Z ##[debug]   --install
2020-10-01T17:29:04.9807003Z ##[debug]   --modules-folder
2020-10-01T17:29:04.9807508Z ##[debug]   /home/vsts/work/1/s/node_modules
2020-10-01T17:29:04.9808985Z ##[debug]   --verbose
2020-10-01T17:29:04.9809610Z ##[debug]   --network-timeout
2020-10-01T17:29:04.9809984Z ##[debug]   60000
2020-10-01T17:29:04.9812550Z [command]/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn --install --modules-folder /home/vsts/work/1/s/node_modules --verbose --network-timeout 60000
2020-10-01T17:29:05.8366465Z yarn install v1.22.5
2020-10-01T17:29:05.8612007Z verbose 0.756338208 Checking for configuration file "/home/vsts/work/1/s/.npmrc".
2020-10-01T17:29:05.8615707Z verbose 0.757025316 Found configuration file "/home/vsts/work/1/s/.npmrc".
2020-10-01T17:29:05.8633851Z verbose 0.757547323 Checking for configuration file "/home/vsts/.npmrc".
2020-10-01T17:29:05.8638204Z verbose 0.759187144 Checking for configuration file "/usr/local/etc/npmrc".
2020-10-01T17:29:05.8652370Z verbose 0.760683763 Checking for configuration file "/home/vsts/work/1/s/.npmrc".
2020-10-01T17:29:05.8655869Z verbose 0.761054968 Found configuration file "/home/vsts/work/1/s/.npmrc".
2020-10-01T17:29:05.8660564Z verbose 0.761546374 Checking for configuration file "/home/vsts/work/1/.npmrc".
2020-10-01T17:29:05.8663918Z verbose 0.761865578 Checking for configuration file "/home/vsts/work/.npmrc".
2020-10-01T17:29:05.8666947Z verbose 0.762173582 Checking for configuration file "/home/vsts/.npmrc".
2020-10-01T17:29:05.8669692Z verbose 0.762455185 Checking for configuration file "/home/.npmrc".
2020-10-01T17:29:05.8716230Z verbose 0.767067644 Checking for configuration file "/home/vsts/work/1/s/.yarnrc".
2020-10-01T17:29:05.8746734Z verbose 0.770139883 Checking for configuration file "/home/vsts/.yarnrc".
2020-10-01T17:29:05.8751919Z verbose 0.77067859 Checking for configuration file "/usr/local/etc/yarnrc".
2020-10-01T17:29:05.8756431Z verbose 0.771131196 Checking for configuration file "/home/vsts/work/1/s/.yarnrc".
2020-10-01T17:29:05.8767463Z verbose 0.772095808 Checking for configuration file "/home/vsts/work/1/.yarnrc".
2020-10-01T17:29:05.8771751Z verbose 0.772649815 Checking for configuration file "/home/vsts/work/.yarnrc".
2020-10-01T17:29:05.8777647Z verbose 0.77307112 Checking for configuration file "/home/vsts/.yarnrc".
2020-10-01T17:29:05.8779343Z verbose 0.773347724 Checking for configuration file "/home/.yarnrc".
2020-10-01T17:29:05.8822499Z verbose 0.777567277 current time: 2020-10-01T17:29:05.881Z
2020-10-01T17:29:05.9994899Z [1/5] Validating package.json...
2020-10-01T17:29:06.0032089Z [2/5] Resolving packages...
2020-10-01T17:29:06.9550058Z [3/5] Fetching packages...
2020-10-01T17:29:07.0071298Z verbose 1.902302159 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/prop-types/-/prop-types-15.7.2.tgz".
2020-10-01T17:29:07.0151641Z verbose 1.910307649 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/loose-envify/-/loose-envify-1.4.0.tgz".
2020-10-01T17:29:07.0212080Z verbose 1.915848411 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/object-assign/-/object-assign-4.1.1.tgz".
...

...Omitting the stuff that works, then the sub-project starts (note that the .npmrc was found in top level path):

...
2020-10-01T17:31:13.3138837Z $ cd ./src/docs && yarn install --verbose
2020-10-01T17:31:13.2636942Z yarn install v1.22.5
2020-10-01T17:31:13.6562018Z verbose 0.324255872 Checking for configuration file "/home/vsts/work/1/s/src/docs/.npmrc".
2020-10-01T17:31:13.6572278Z verbose 0.326036072 Checking for configuration file "/home/vsts/.npmrc".
2020-10-01T17:31:13.6575893Z verbose 0.326445971 Checking for configuration file "/usr/local/etc/npmrc".
2020-10-01T17:31:13.6579710Z verbose 0.326798571 Checking for configuration file "/home/vsts/work/1/s/src/docs/.npmrc".
2020-10-01T17:31:13.6583667Z verbose 0.327189671 Checking for configuration file "/home/vsts/work/1/s/src/.npmrc".
2020-10-01T17:31:13.6587657Z verbose 0.327607571 Checking for configuration file "/home/vsts/work/1/s/src/exposed-public-api/.npmrc".
2020-10-01T17:31:13.6591305Z verbose 0.327996771 Checking for configuration file "/home/vsts/work/1/s/src/.npmrc".
2020-10-01T17:31:13.6594865Z verbose 0.328367371 Checking for configuration file "/home/vsts/work/1/s/.npmrc".
2020-10-01T17:31:13.6598267Z verbose 0.32870717 Found configuration file "/home/vsts/work/1/s/.npmrc".
2020-10-01T17:31:13.6603476Z verbose 0.32922137 Checking for configuration file "/home/vsts/work/1/.npmrc".
2020-10-01T17:31:13.6606693Z verbose 0.32955397 Checking for configuration file "/home/vsts/work/.npmrc".
2020-10-01T17:31:13.6610163Z verbose 0.32988667 Checking for configuration file "/home/vsts/.npmrc".
2020-10-01T17:31:13.6613454Z verbose 0.33022567 Checking for configuration file "/home/.npmrc".
2020-10-01T17:31:13.6660932Z verbose 0.334848168 Checking for configuration file "/home/vsts/work/1/s/src/docs/.yarnrc".
2020-10-01T17:31:13.6665602Z verbose 0.335337568 Checking for configuration file "/home/vsts/.yarnrc".
2020-10-01T17:31:13.6668908Z verbose 0.335751568 Checking for configuration file "/usr/local/etc/yarnrc".
2020-10-01T17:31:13.6672511Z verbose 0.336073368 Checking for configuration file "/home/vsts/work/1/s/src/docs/.yarnrc".
2020-10-01T17:31:13.6676398Z verbose 0.336460467 Checking for configuration file "/home/vsts/work/1/s/src/.yarnrc".
2020-10-01T17:31:13.6680413Z verbose 0.336848767 Checking for configuration file "/home/vsts/work/1/s/src/exposed-public-api/.yarnrc".
2020-10-01T17:31:13.6683856Z verbose 0.337250367 Checking for configuration file "/home/vsts/work/1/s/src/.yarnrc".
2020-10-01T17:31:13.6687634Z verbose 0.337593267 Checking for configuration file "/home/vsts/work/1/s/.yarnrc".
2020-10-01T17:31:13.6690955Z verbose 0.337960767 Checking for configuration file "/home/vsts/work/1/.yarnrc".
2020-10-01T17:31:13.6694115Z verbose 0.338274067 Checking for configuration file "/home/vsts/work/.yarnrc".
2020-10-01T17:31:13.6697603Z verbose 0.338614167 Checking for configuration file "/home/vsts/.yarnrc".
2020-10-01T17:31:13.6700764Z verbose 0.338945966 Checking for configuration file "/home/.yarnrc".
2020-10-01T17:31:13.6739546Z verbose 0.342770765 current time: 2020-10-01T17:31:13.673Z
2020-10-01T17:31:13.6940583Z [1/4] Resolving packages...
2020-10-01T17:31:13.7369259Z [2/4] Fetching packages...
2020-10-01T17:31:13.7724757Z verbose 0.441010526 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/github-markdown-css/-/github-markdown-css-4.0.0.tgz".
2020-10-01T17:31:13.7807371Z verbose 0.449456523 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/marked/-/marked-1.2.0.tgz".
2020-10-01T17:31:13.7866241Z verbose 0.454677221 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/prismjs/-/prismjs-1.21.0.tgz".
2020-10-01T17:31:13.7886739Z verbose 0.45746552 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/clipboard/-/clipboard-2.0.6.tgz".
2020-10-01T17:31:13.7919080Z verbose 0.460714318 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/good-listener/-/good-listener-1.2.2.tgz".
2020-10-01T17:31:13.8203678Z verbose 0.488930907 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/select/-/select-1.1.2.tgz".
2020-10-01T17:31:13.8244413Z verbose 0.491662206 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/tiny-emitter/-/tiny-emitter-2.1.0.tgz".
2020-10-01T17:31:13.8324313Z verbose 0.496050805 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/delegate/-/delegate-3.2.0.tgz".
2020-10-01T17:31:13.9164718Z error https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/clipboard/-/clipboard-2.0.6.tgz: Request failed "401 Unauthorized"
2020-10-01T17:31:13.9237751Z verbose 0.592501967 Error: https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/github-markdown-css/-/github-markdown-css-4.0.0.tgz: Request failed "401 Unauthorized"
2020-10-01T17:31:13.9239491Z     at ResponseError.ExtendableBuiltin (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:696:66)
2020-10-01T17:31:13.9240604Z     at new ResponseError (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:802:124)
2020-10-01T17:31:13.9241907Z     at Request.<anonymous> (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:67058:16)
2020-10-01T17:31:13.9242608Z     at Request.emit (events.js:315:20)
2020-10-01T17:31:13.9243892Z     at Request.module.exports.Request.onRequestResponse (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:141626:10)
2020-10-01T17:31:13.9244653Z     at ClientRequest.emit (events.js:315:20)
2020-10-01T17:31:13.9245114Z     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)
2020-10-01T17:31:13.9245646Z     at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
2020-10-01T17:31:13.9246065Z     at TLSSocket.socketOnData (_http_client.js:469:22)
2020-10-01T17:31:13.9246440Z     at TLSSocket.emit (events.js:315:20)
2020-10-01T17:31:13.9258699Z error An unexpected error occurred: "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/github-markdown-css/-/github-markdown-css-4.0.0.tgz: Request failed \"401 Unauthorized\"".
2020-10-01T17:31:13.9259931Z info If you think this is a bug, please open a bug report with the information provided in "/home/vsts/work/1/s/src/docs/yarn-error.log".
2020-10-01T17:31:13.9263424Z info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2020-10-01T17:31:13.9269107Z error https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/select/-/select-1.1.2.tgz: Request failed "401 Unauthorized"
2020-10-01T17:31:13.9272906Z error https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/tiny-emitter/-/tiny-emitter-2.1.0.tgz: Request failed "401 Unauthorized"
2020-10-01T17:31:13.9278433Z error https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/good-listener/-/good-listener-1.2.2.tgz: Request failed "401 Unauthorized"
2020-10-01T17:31:13.9286489Z error https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/delegate/-/delegate-3.2.0.tgz: Request failed "401 Unauthorized"
2020-10-01T17:31:13.9323723Z verbose 0.601125863 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/zero-md/-/zero-md-1.4.0.tgz".
2020-10-01T17:31:13.9342000Z verbose 0.602959862 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/findup-sync/-/findup-sync-4.0.0.tgz".
2020-10-01T17:31:13.9360577Z verbose 0.604804562 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/detect-file/-/detect-file-1.0.0.tgz".
2020-10-01T17:31:13.9416562Z verbose 0.610437959 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/micromatch/-/micromatch-4.0.2.tgz".
2020-10-01T17:31:13.9511288Z verbose 0.619814356 Performing "GET" request to "https://pkgs.dev.azure.com/acmecloud/_packaging/ClkNuget/npm/registry/resolve-dir/-/resolve-dir-1.0.1.tgz".
2020-10-01T17:31:14.0072387Z error Command failed with exit code 1.
2020-10-01T17:31:14.0073312Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2020-10-01T17:31:14.0339147Z verbose 128.929198308 Error: Command failed with exit code 1.
2020-10-01T17:31:14.0340563Z     at ProcessTermError.ExtendableBuiltin (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:721:66)
2020-10-01T17:31:14.0341427Z     at ProcessTermError.MessageError (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:750:123)
2020-10-01T17:31:14.0342501Z     at new ProcessTermError (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:790:113)
2020-10-01T17:31:14.0343209Z     at /opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:34550:30
2020-10-01T17:31:14.0343581Z     at Generator.throw (<anonymous>)
2020-10-01T17:31:14.0344174Z     at step (/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:310:30)
2020-10-01T17:31:14.0344813Z     at /opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/lib/cli.js:323:13
2020-10-01T17:31:14.0345173Z     at runMicrotasks (<anonymous>)
2020-10-01T17:31:14.0345563Z     at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-10-01T17:31:14.0345913Z error Command failed with exit code 1.
2020-10-01T17:31:14.0346309Z info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2020-10-01T17:31:14.1107842Z ##[debug]Exit code 1 received from tool '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn'
2020-10-01T17:31:14.1112641Z ##[debug]STDIO streams have closed for tool '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn'
2020-10-01T17:31:14.1142435Z ##[debug]Error: The process '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn' failed with exit code 1
2020-10-01T17:31:14.1145003Z ##[debug]Error: The process '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn' failed with exit code 1
    at ExecState._setResult (/home/vsts/work/_tasks/Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3/3.0.1999/node_modules/azure-pipelines-task-lib/toolrunner.js:816:25)
    at ExecState.CheckComplete (/home/vsts/work/_tasks/Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3/3.0.1999/node_modules/azure-pipelines-task-lib/toolrunner.js:799:18)
    at ChildProcess.<anonymous> (/home/vsts/work/_tasks/Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3/3.0.1999/node_modules/azure-pipelines-task-lib/toolrunner.js:721:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:920:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
2020-10-01T17:31:14.1146984Z ##[debug]task result: Failed
2020-10-01T17:31:14.1181699Z ##[error]Error: The process '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn' failed with exit code 1
2020-10-01T17:31:14.1195606Z ##[debug]Processed: ##vso[task.issue type=error;]Error: The process '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn' failed with exit code 1
2020-10-01T17:31:14.1204395Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: The process '/opt/hostedtoolcache/yarn/1.22.5/x64/yarn-v1.22.5/bin/yarn' failed with exit code 1
2020-10-01T17:31:14.1205125Z ##[debug]Agent.BuildDirectory=/home/vsts/work/1
2020-10-01T17:31:14.1205828Z ##[debug]rm -rf /home/vsts/work/1/npm
2020-10-01T17:31:14.1206239Z ##[debug]removing directory
2020-10-01T17:31:14.1209067Z ##[section]Finishing: Yarn Install - Troubleshooting - Testing 3.preview task

System information

VSTS or TFS:

  • VSTS
  • TFS

Agent:

  • Hosted
  • Custom
    (not sure - set up by company)

OS:

  • Windows
  • Mac
  • Linux

Yarn version:
1.22.5

Node version:
12