How to setup a Node.js project.

Edgar Silva's Avatar

Edgar Silva

04 Apr, 2014 06:16 PM

I'm trying to create a appveyor.yml file for a Node.js project, but so far all builds stop before doing any work or even getting to install. Is there any consideration I need to have when creating the appveyor.yml file for nodejs projects?

Like how to setup Matrix?
How do I specify language?
Is it possible to specify a version of node-js to use?

Any help will be greatly appreciated.

  1. Support Staff 1 Posted by Feodor Fitsner on 04 Apr, 2014 06:30 PM

    Feodor Fitsner's Avatar

    Hi Edgar,

    Thanks for your interest in AppVeyor!

    Right now we are working with Grunt project to make AppVeyor running their tests on Windows platform. It's almost finished and we got pretty amazing results. Please see Grunt appveyor.yml and also you can follow pull request.

    I hope the structure of appveyor.yml is self-descriptive, but let me know if you have any questions/suggestions.

    Upon getting final results (and your feedback of course) we'll create a guide for running Node.js projects on AppVeyor.

  2. 2 Posted by Tom Fulton on 01 May, 2014 10:20 PM

    Tom Fulton's Avatar

    Hi Feodor,

    I'm wondering about this also. I see the pull request was merged - do you have any update on the current status of using AppVeyor to build a Node.js project?

    Thanks!
    Tom

  3. Support Staff 3 Posted by Feodor Fitsner on 02 May, 2014 12:19 AM

    Feodor Fitsner's Avatar

    Hi guys,

    While we are working on Node.js guide this is a good place to start: https://github.com/gruntjs/grunt/blob/master/appveyor.yml

    Matrix, line endings, node versions and other things can be seen there.

  4. 4 Posted by erik_schierboom on 27 May, 2014 09:38 AM

    erik_schierboom's Avatar

    Can't wait for the Node.js guide to appear! I love appveyor and adding node.js support would make it even better.

  5. 5 Posted by Brian Reavis on 19 Jun, 2014 02:25 AM

    Brian Reavis's Avatar

    Also would really appreciate the guide! I have no idea how to pin to a specific Node.js version (e.g. 0.8.26, not just "0.8"). Related: https://github.com/joyent/node/issues/7805

    Changing nodejs_version to "0.8.26" leads to an error:

    You cannot call a method on a null-valued expression.
    7 At C:\Program Files\AppVeyor\BuildAgent\scripts\nodejs-helpers.psm1:113 char:12
    8 +     return (Select-String '>v(\d*.\d*.\d*)/<' -input $content -allmatches `
    9 +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    10     + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    11     + FullyQualifiedErrorId : InvokeMethodOnNull
    12
    13 Update-NodeJsInstallation : Cannot bind argument to parameter 'version' because it is an empty string. 14 At line:1 char:27 15 + Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) 16 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 17 + CategoryInfo : InvalidData: (:) [Update-NodeJsInstallation], ParameterBindingValidationException 18 + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Update-NodeJsInstallation 19 20 Command executed with exception: Cannot bind argument to parameter 'version' because it is an empty string.
  6. 6 Posted by dane on 20 Jun, 2014 04:56 PM

    dane's Avatar

    Since the proble Brian posted (that I am also hitting) is not getting a response I've created a new issue that explains the problem in more detail: http://help.appveyor.com/discussions/problems/464-be-able-to-contro...

  7. 7 Posted by m.goleb on 23 Jun, 2014 11:53 AM

    m.goleb's Avatar

    Current AppVeyor Node.js setup is far from idea. testing on Node 0.11 requires updating Node on each run which is extremely slow. AppVeyor should have a couple of Node versions preloaded and available without manual installation, like Travis does.

  8. 8 Posted by m.goleb on 23 Jun, 2014 04:28 PM

    m.goleb's Avatar

    I moved the preloading issue to a separate thread: http://help.appveyor.com/discussions/suggestions/266-nodejs-version...

  9. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:46 AM.

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