Table of Contents

Class NodeInstallOperations

Namespace
Ando.Operations
Assembly
ando.dll

Operations for installing Node.js globally in the container.

public class NodeInstallOperations : OperationsBase
Inheritance
NodeInstallOperations
Inherited Members

Constructors

NodeInstallOperations(StepRegistry, IBuildLogger, Func<ICommandExecutor>, NodeSdkEnsurer?)

Operations for installing Node.js globally in the container.

public NodeInstallOperations(StepRegistry registry, IBuildLogger logger, Func<ICommandExecutor> executorFactory, NodeSdkEnsurer? nodeEnsurer = null)

Parameters

registry StepRegistry
logger IBuildLogger
executorFactory Func<ICommandExecutor>
nodeEnsurer NodeSdkEnsurer

Methods

Install(string)

Installs Node.js globally using NodeSource. Calling this method disables automatic Node.js installation for subsequent npm operations.

public void Install(string version = "22")

Parameters

version string

Major version (e.g., "20", "22"). Defaults to "22" (current LTS).