Compartir a través de


NodeTool@0 - Node.js tool installer v0 task

Use this task to find, download, and cache a specified version of Node.js and add it to the PATH.

Inputs

versionSpec - Version Spec
string. Required. Default value: 6.x.

Specifies the version spec of the version to get. Examples: 6.x, 4.x, 6.10.0, >=6.10.0.


checkLatest - Check for Latest Version
boolean. Default value: false.

Specifies the agent to check for the latest available version that satisfies the version spec. For example, you select this option because you run this build on your self-hosted agent, and you want to always use the latest 6.x version.

Tip

If you're using the Microsoft-hosted agents, you should leave this set to false. Microsoft updates the Microsoft-hosted agents on a regular basis, but they're often slightly behind the latest version. Enabling this parameter could result in your build spending a lot of time updating to a newer minor version.


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.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities Running this task satisfies the following demands for any subsequent tasks in the same job: Node
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Tool

See also

For an explanation of tool installers and examples, see Tool installers.