Comments (4)
Hi,
Sorry for the inconvenience, I double checked, but the task is behaving correctly on my builds. So I have questions.
From what I see in your logs, you are on a custom agent and using a locally installed yarn version located in f:\yarn
. Which version are you using, is the service account runing vsts agent having sufficient rights?
In addition, can you provide a debug log
from gl-vsts-tasks-yarn.
Hi,
So we had installed yarn with npm (npm install -g yarn). To check permissions like you said, we jumped into the box and tried to run it as Network Service (build agent runs as network service), didn't work.
So we installed again but with the .msi. Tried to run as network service: worked!
En-queue a new build again, didn't work.
Restarted the build machine, tested again.... It worked!
Hope that experience will help others.
Thanks for your comment @sandorfr to put me into the right direction.
And thanks for your work guys. Its awesome!
from gl-vsts-tasks-yarn.
I'm thinking of writing some additional guidance, to point users in the right direction. Thank you for sharing your experience as it will help me. Two important points from your feedback:
- Your first attempt was to install it with
npm
which is not one of the supported ways, so I guess we should point to the installation instruction (msi or chocolatey). - The fact that a reboot is needed despite being a common thing with windows can be pretty tricky to troubleshoot, so we should recommend doing so.
from gl-vsts-tasks-yarn.
Hi @sandorfr,
In fact i don't know if a restart of the agent service would do the trick. But we didn't have any queued build, so we did a full reboot. Probably a restart of the service in enough. My understanding is that the agent has to restart so he gets the new environment vars.
from gl-vsts-tasks-yarn.
Related Issues (20)
- Upgrade to Node 10 execution handler HOT 3
- Yarn tasks fails due to DNS issue? `getaddrinfo ENOTFOUND publicblobs.geeklearning.io publicblobs.geeklearning.io:443` HOT 16
- Yarn tasks suddenly failing with node-sass module not found error since Dec1 2021 HOT 2
- Yarn Use failing with "Yarn package layout unexpected." HOT 1
- Unable to run yarn after upgrading yarn version to 3.x in azure build pipeine HOT 2
- Please support repository authentication for Yarn 3+ HOT 3
- It Couldn't installed on Azure ِDevops Local 64 bit
- Yarn install times out with no debug output HOT 2
- Task version Preview only HOT 3
- New feature: retries HOT 5
- Wont execute - wrong agent version HOT 5
- Yarn install task failing consistently with [error]connect ETIMEDOUT 104.27.154.154:443 HOT 8
- How to run other Yarn comands HOT 7
- info There appears to be trouble with you network connection HOT 6
- Sub-project's `yarn install` (called in `postinstall` of top project) gets 401s (despite seing the .npmrc file)
- Azure Devops: ##[error]Yarn package layout unexpected.
- Unexpected token < in JSON at position 0 HOT 1
- Option to disable word-wrapping the output in VSTS. HOT 1
- Yarn Azure Devops Task not failing the yaml build pipeline if the task fails
- Azure Devops: Yarn task failing intermittently HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gl-vsts-tasks-yarn.