Skip to content

craft-hub / NpmPluginPackageInstaller

Class: NpmPluginPackageInstaller

Defined in: packages/craft-hub/src/marketplace.ts:189

Install npm packages without invoking package lifecycle scripts.

Implements

Constructors

Constructor

new NpmPluginPackageInstaller(): NpmPluginPackageInstaller

Returns

NpmPluginPackageInstaller

Methods

install()

install(input): Promise<InstalledPackage>

Defined in: packages/craft-hub/src/marketplace.ts:190

Parameters

input
destination

string

package

string

registry?

string

version

string

Returns

Promise<InstalledPackage>

Implementation of

PluginPackageInstaller.install

Released under the MIT License.