跳转到内容

PackageManager

此内容尚不支持你的语言。

Defined in: index.ts:386

readonly agent: "npm" | "pnpm" | "yarn-classic" | "yarn-berry";

Defined in: index.ts:388


readonly directory: string;

Defined in: index.ts:387


readonly install: (changes: {
[key: string]: string | null;
}) => Effect<InstallResult, Error>;

Defined in: index.ts:393

Serialized per manager. Empty changes installs the current manifest, including first installs.

Parameter Type
changes { [key: string]: string | null; }

Effect<InstallResult, Error>


readonly readState: Effect<State, Error>;

Defined in: index.ts:389


readonly recoveryRequired: Effect<Option<RecoveryRequiredError>>;

Defined in: index.ts:391

Present when manual recovery is required; the manager cannot be reused.