Currently you can do:
environment:
matrix:
- nodejs_version: 0.8
But not:
environment:
matrix:
- nodejs_version: 0.8.26
The error you get is seen at http://help.appveyor.com/discussions/problems/212-how-to-setup-a-no....
Being able to require the patch version and not just the major.minor might see trivial but it's not - it's absolutely essential because the Node.js developers have released a broken node.js v0.8.27 version (https://github.com/joyent/node/issues/7805), which is what is being automatically used on appveyor. I'm open to other ways of working around this problem, but supporting requesting the major.minor.patch seems like the best and most flexible because there are always going to be other reasons why you'd want this.

#1 Posted by Feodor Fitsner Support staff on 20 Jun, 2014 07:39 PM
You may just use "Update-NodeJsInstallation $env:nodejs_version" command to install exact version of node.
- Feodor
#2 Posted by dane on 20 Jun, 2014 07:43 PM
Thanks for the reply. However, I'm not following. What you are saying is that
0.8.26is invalid as a value for thenodejs_versionkey in the matrix and you recommend just hardcoding it in the call toUpdate-NodeJsInstallation?Did you see the error (here: http://help.appveyor.com/discussions/problems/212-how-to-setup-a-no...) that results when this is used?
environment: matrix: - nodejs_version: "0.8.26"#3 Posted by dane on 20 Jun, 2014 07:49 PM
Oh, maybe what you are saying is to use:
Instead of what I have been using:
I've never used powershell so I did not look critically at those commands previously and I've just been copying them around. I gather that
Get-NodeJsLatestBuildmust be the thing that expects just a major.minor arg?#4 Posted by Feodor Fitsner Support staff on 20 Jun, 2014 07:49 PM
That error comes from Get-NodeJsLatestBuild function. What I'm suggesting is to don't use this function if you know exact version of node.js that should be installed.
- Feodor
#5 Posted by Feodor Fitsner Support staff on 20 Jun, 2014 07:50 PM
Exactly.
- Feodor
#6 Posted by dane on 20 Jun, 2014 07:57 PM
Thanks, that makes sense. Is there any documentation I'm missing for the
Update-NodeJsInstallationandGet-NodeJsLatestBuildfunctions? For example, do I have it right thatUpdate-NodeJsInstallationtakes an optional second argument of the platform (x64 vs x86)? Where can I confirm that I have this right?#7 Posted by Feodor Fitsner Support staff on 20 Jun, 2014 08:02 PM
Yes, specifying platform is correct and it's optional.
- Feodor
#8 Posted by dane on 23 Jun, 2014 03:26 AM
Excellent, thanks, closing this up now!
dane closed this discussion on 23 Jun, 2014 03:26 AM.