Table of Contents

Class NpmInstallOperations

Namespace
Ando.Operations
Assembly
ando.dll

Operations for managing npm globally in the container.

public class NpmInstallOperations : OperationsBase
Inheritance
NpmInstallOperations
Inherited Members

Constructors

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

Operations for managing npm globally in the container.

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

Parameters

registry StepRegistry
logger IBuildLogger
executorFactory Func<ICommandExecutor>
nodeEnsurer NodeSdkEnsurer

Methods

ToolInstall(string)

Upgrades npm to a specific version globally. Note: npm is installed with Node.js, so Node.Install() should be called first, or npm auto-install will ensure Node.js is available.

public void ToolInstall(string version = "latest")

Parameters

version string

npm version (e.g., "10", "latest"). Defaults to "latest".