Skip to content

craft-hub / NpmPluginPackageInstaller

Class: NpmPluginPackageInstaller ​

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

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:425

Parameters ​

input ​
destination ​

string

integrity? ​

string

package ​

string

registry? ​

string

signal? ​

AbortSignal

version ​

string

Returns ​

Promise<InstalledPackage>

Implementation of ​

PluginPackageInstaller.install

Released under the MIT License.