Node version not available after specifying nodejs_version

Iwan's Avatar

Iwan

26 Oct, 2017 06:28 PM

This is my appveyor.yml

environment:
  image: Visual Studio 2017
  matrix:
    # node.js
    - nodejs_version: "6"
    - nodejs_version: "7"
    - nodejs_version: "8"

platform:
  - x64

install:
  - node -v
  - npm install -g esy
  - esy install

If my build starts I get:

Build started
git clone -q --branch=master https://github.com/IwanKaramazow/Track.git C:\projects\track
git checkout -qf 69ca15a431e157aec7d55383b7c18da020c70070
Running Install scripts
node -v
v4.8.4

Why is the node version v4 instead of v6, 7 or 8 ?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 26 Oct, 2017 07:12 PM

    Ilya Finkelshteyn's Avatar

    Please add the following into install step:

    - ps: Install-Product node $env:nodejs_version
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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