geeklearningio / gl-vsts-tasks-yarn

Yarn Package Manager Visual Studio Team Services Build and Release Management extensions
MIT License
52 stars 18 forks source link

File not found: '********\npmauth.js' #57

Closed larsklingenberg closed 5 years ago

larsklingenberg commented 5 years ago

Before opening an issue please read this.

Are you reporting a bug or a feature request ?

Description

When running yarn in Azure DevOps-pipeline I get the following message: 2018-11-14T10:55:14.0277545Z ##[error]File not found: 'D:\a_tasks\Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3\2.6.999\npmauth.js'

This makes the build fail.

I have just added Yarn with UI in Azure DevOps-Pipeline.

Worked for Version 2.5.999, not for 2.6.999.

MANDATORY FOR BUGS: Insert debug trace

2018-11-14T10:55:13.9869500Z ##[section]Starting: Yarn 2018-11-14T10:55:13.9872914Z ============================================================================== 2018-11-14T10:55:13.9872988Z Task : Yarn task 2018-11-14T10:55:13.9873033Z Description : Executes Yarn 2018-11-14T10:55:13.9873095Z Version : 2.6.999 2018-11-14T10:55:13.9873139Z Author : Geek Learning 2018-11-14T10:55:13.9873215Z Help : More Information (Version 2.6.999).

Dear Angular and Ember CLI users, please check our known issues 2018-11-14T10:55:13.9873302Z ============================================================================== 2018-11-14T10:55:14.0277545Z ##[error]File not found: 'D:\a_tasks\Yarn_0888c9a9-d1b2-4567-aae2-beadcb2059b3\2.6.999\npmauth.js' 2018-11-14T10:55:14.0293835Z ##[section]Finishing: Yarn

System information

VSTS or TFS:

Agent:

OS:

Yarn version: 1.9.4 (local) *Yarn version**

Node version: 10.10 *Node version**

sandorfr commented 5 years ago

Hi,

Sorry that you are facing this issue. I just ran my test build and it's working perfectly fine. So there must be something else at play.

can you reproduce that 100% of the time. Also can you provide me the full debug trace? (including the variables). So I can try to mimic your settings as close as possible.

Kind regards, Cyprien

larsklingenberg commented 5 years ago

logs_158.zip

falecci commented 5 years ago

We are having the same problem in Azure DevOps with Hosted VS2017 and Ubuntu agents. Also, we have noticed that we have a "PREVIEW" label in yarn task we didn't have before.

marianoheller commented 5 years ago

Same situation as @falecci but without the "PREVIEW" label in the yarn task.

ivanfranco502 commented 5 years ago

Same here!

arichiardi commented 5 years ago

We are affetcted as well.

I converted the Yarn tasks to Command Line tasks doing the authentication with npm Authenticate (for task runners) out of band.

Not ideal though.

sandorfr commented 5 years ago

Can you tell me which region your vsts is hosted in?

Le jeu. 15 nov. 2018 à 08:12, Andrea Richiardi notifications@github.com a écrit :

We are affetcted as well.

I converted the Yarn tasks to Command Line tasks doing the authentication with npm Authenticate (for task runners) out of band.

Not ideal though.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/geeklearningio/gl-vsts-tasks-yarn/issues/57#issuecomment-438820466, or mute the thread https://github.com/notifications/unsubscribe-auth/ACiXpsWeBci4UiizVFSZ2ljE5aaXCREQks5uvIdDgaJpZM4YdiDO .

arichiardi commented 5 years ago

How do I check that?

jogonzal commented 5 years ago

@arichiardi your workaround worked for us too, but agree, not ideal

image

EDIT: I also needed the npm authenticate step that @arichiardi mentioned

image

arichiardi commented 5 years ago

@sandorfr canadacentral

chevonc commented 5 years ago

Any chance we can have a quick reversion on this - while you investigate?

sandorfr commented 5 years ago

@chevonc Sadly I can't do anything as it has nothing to do with the tasks and it is a vsts issue. I seems to be related to the last update as it's not affecting all deployment rings.

sandorfr commented 5 years ago

I think I've found the cause of of this. I've published a 2.7.999, @chevonc if you have a chance to test it as I can't reproduce it on my accounts?

Still have no clue about #56 though.

larsklingenberg commented 5 years ago

New version worked for me @sandorfr, thank you! :)

stephenmichaelf commented 5 years ago

Is anyone else still having this issue?

sandorfr commented 5 years ago

@stephenmichaelf I get from your question that you are still facing some issues?

arichiardi commented 5 years ago

Sorry haven't tried, at the moment I will keep the Command Line tasks instead. Thanks for the quick fix though!

stephenmichaelf commented 5 years ago

@sandorfr Nope! I am on the team at Microsoft that owns this so wanted to make sure no one else was having issues :)

sandorfr commented 5 years ago

@stephenmichaelf Yes I didn't realize it was you Ross mentioned in his email. Thanks.