tag:help.appveyor.com,2012-11-13:/discussions/questions/11941-node-version-not-available-after-specifying-nodejs_versionAppVeyor: Discussion 2018-08-25T02:20:41Ztag:help.appveyor.com,2012-11-13:Comment/438765142017-10-26T18:28:38Z2017-10-26T19:12:49ZNode version not available after specifying nodejs_version<div><p>This is my appveyor.yml</p>
<pre>
<code>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</code>
</pre>
<p>If my build starts I get:</p>
<pre>
<code>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</code>
</pre>
<p>Why is the node version v4 instead of v6, 7 or 8 ?</p></div>Iwantag:help.appveyor.com,2012-11-13:Comment/438765142017-10-26T19:12:17Z2017-10-26T19:12:17ZNode version not available after specifying nodejs_version<div><p>Please add the following into <code>install</code> step:<br></p>
<pre>
<code>- ps: Install-Product node $env:nodejs_version</code>
</pre></div>Ilya Finkelshteyn