yarn/npm/node not in Path

Joram van den Boezem's Avatar

Joram van den Boezem

05 Feb, 2020 10:13 AM

Hi there,

Previously, yarn, npm and node where available from the Path environment variables. The Path environment variable currently contain these paths:

C:\Users\appveyor\AppData\Roaming\npm
C:\Users\appveyor\AppData\Local\Yarn\bin
C:\Program Files\nodejs

These paths seem to not exist (anymore?), and the programs reside in these folders:

C:\Program Files (x86)\Yarn\bin
C:\Program Files (x86)\nodejs

I don't know if this was recently changed, but we started observing errors in our pipeline expecting node and yarn to be available from the Path recently (since a couple of days ago).

We're observing this behaviour in both the Visual Studio 2017 and 2019 images.

Is this a known error, and if so, will the previous behaviour be restored, or should we build a work-around?

Best,
Joram

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Feb, 2020 07:57 PM

    Feodor Fitsner's Avatar

    Hi Joram,

    I'm looking at Visual Studio 2019 image currently: https://ci.appveyor.com/project/FeodorFitsner/nuget-test/builds/305...

    and I see the following paths in PATH:

    C:\Program Files (x86)\nodejs\
    C:\Program Files\nodejs
    C:\Users\appveyor\AppData\Roaming\npm
    C:\Program Files (x86)\Yarn\bin\
    

    The last one for Yarn is used to be in Program Files (x86) as we install Yarn from MSI.

    Are you sure you are not changing the PATH during the build?

  2. Feodor Fitsner closed this discussion on 06 Apr, 2020 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM

 

02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM