public class UnixNodeInstaller extends AbstractNodeInstaller
BASE_DOWNLOAD_URL| Constructor and Description |
|---|
UnixNodeInstaller(ProcessRunner processRunner,
Path localRepositoryDirectory,
String os,
String arch) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
download(NodeVersion version,
String os,
String arch,
Path destination)
Downloads the required Node.js version (taking into account the operating system and its architecture) to the
specified directory.
|
protected NodeProcessRunner |
toNodeProcessRunner(Path homeDirectory)
Creates a
NodeProcessRunner. |
installpublic UnixNodeInstaller(ProcessRunner processRunner, Path localRepositoryDirectory, String os, String arch)
protected void download(NodeVersion version, String os, String arch, Path destination)
AbstractNodeInstallerdownload in class AbstractNodeInstallerversion - Node.js versionos - operating system namearch - operating system architecturedestination - destination directoryprotected NodeProcessRunner toNodeProcessRunner(Path homeDirectory)
AbstractNodeInstallerNodeProcessRunner.toNodeProcessRunner in class AbstractNodeInstallerhomeDirectory - the directory where Node.js is installedNodeProcessRunner.Copyright © 2022. All rights reserved.