DependencyInstaller
Nodepod API / src / npm / DependencyInstaller
Class: DependencyInstaller
Section titled “Class: DependencyInstaller”Defined in: src/packages/installer.ts:199
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DependencyInstaller(
vol,opts?):DependencyInstaller
Defined in: src/packages/installer.ts:207
Parameters
Section titled “Parameters”object & RegistryConfig = {}
Returns
Section titled “Returns”DependencyInstaller
Methods
Section titled “Methods”install()
Section titled “install()”install(
packageName,version?,flags?):Promise<InstallOutcome>
Defined in: src/packages/installer.ts:240
Parameters
Section titled “Parameters”packageName
Section titled “packageName”string
version?
Section titled “version?”string
flags?
Section titled “flags?”InstallFlags = {}
Returns
Section titled “Returns”Promise<InstallOutcome>
installFromManifest()
Section titled “installFromManifest()”installFromManifest(
manifestPath?,flags?):Promise<InstallOutcome>
Defined in: src/packages/installer.ts:382
Parameters
Section titled “Parameters”manifestPath?
Section titled “manifestPath?”string
flags?
Section titled “flags?”InstallFlags = {}
Returns
Section titled “Returns”Promise<InstallOutcome>
installWorkspace()
Section titled “installWorkspace()”installWorkspace(
rootManifestPath?,flags?):Promise<WorkspaceInstallOutcome>
Defined in: src/packages/installer.ts:486
Install a root npm workspace and each child workspace. Workspace-local dependencies are linked through the VFS after external dependencies are installed in the package that consumes them.
Parameters
Section titled “Parameters”rootManifestPath?
Section titled “rootManifestPath?”string
flags?
Section titled “flags?”InstallFlags = {}
Returns
Section titled “Returns”Promise<WorkspaceInstallOutcome>
listInstalled()
Section titled “listInstalled()”listInstalled():
Record<string,string>
Defined in: src/packages/installer.ts:561
Returns
Section titled “Returns”Record<string, string>