Function: installCommand()
function installCommand(
pm,
packages,
opts?
): string;
Defined in: pkg-manager.ts:139
Build the command that installs packages with a package manager.
Parameters
| Parameter | Type | Description |
|---|---|---|
pm |
PackageManager |
The package manager to use. |
packages |
string[] |
The packages to install. |
opts |
InstallOptions |
Install options. |
Returns
string
The command, or an empty string when there are no packages.