Git Product home page Git Product logo

Comments (4)

sandorfr avatar sandorfr commented on June 2, 2024

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.

ruimserrano avatar ruimserrano commented on June 2, 2024

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.

sandorfr avatar sandorfr commented on June 2, 2024

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.

ruimserrano avatar ruimserrano commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.