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
registryStepRegistryloggerIBuildLoggerexecutorFactoryFunc<ICommandExecutor>nodeEnsurerNodeSdkEnsurer
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
versionstringMajor version (e.g., "20", "22"). Defaults to "22" (current LTS).