NodeTaskRunnerInstaller@0 - Node.js tasks runner installer v0 task

Install specific Node.js version to run node tasks.

Syntax

# Node.js tasks runner installer v0
# Install specific Node.js version to run node tasks.
- task: NodeTaskRunnerInstaller@0
  inputs:
    nodeVersion: '6' # '6' | '10'. Alias: runnerVersion | installVersion. Required. Version of runner to install. Default: 6.

Inputs

nodeVersion - Version of runner to install
Input alias: runnerVersion | installVersion. string. Required. Allowed values: 6 (Node.js 6.17.1), 10 (Node.js 10.24.1). Default value: 6.

Select the node version to install.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

When adopting agent releases that exclude the Node 6 task runner you may have an occasional need to run tasks that have not been updated to use a newer Node runner. For this scenario we provide a way to still use tasks dependent on Node End-of-Life runners. For more information, see Node runner guidance blog post.

The following task example shows how to install the Node 6 runner just-in-time, so an older task can successfully run.

  steps:
  - task: NodeTaskRunnerInstaller@0
    inputs:
      runnerVersion: 6

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.144.0 or greater
Task category Utility