File not found: '********\npmauth.js'
larsklingenberg opened this issue · comments
Before opening an issue please read this.
Are you reporting a bug or a feature request ?
- Bug
- 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:
- VSTS
- TFS
Agent:
- Hosted
- Custom
OS:
- Windows
- Mac
- Linux
Yarn version: 1.9.4 (local)
Yarn version*
Node version: 10.10
Node version*
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
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.
Same situation as @falecci but without the "PREVIEW" label in the yarn task.
Same here!
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.
How do I check that?
@arichiardi your workaround worked for us too, but agree, not ideal
EDIT:
I also needed the npm authenticate step that @arichiardi mentioned
@sandorfr canadacentral
Any chance we can have a quick reversion on this - while you investigate?
@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.
New version worked for me @sandorfr, thank you! :)
Is anyone else still having this issue?
@stephenmichaelf I get from your question that you are still facing some issues?
Sorry haven't tried, at the moment I will keep the Command Line tasks instead. Thanks for the quick fix though!
@sandorfr Nope! I am on the team at Microsoft that owns this so wanted to make sure no one else was having issues :)
@stephenmichaelf Yes I didn't realize it was you Ross mentioned in his email. Thanks.