PackageManager
此内容尚不支持你的语言。
Defined in: index.ts:386
Properties
Section titled “Properties”readonly agent: "npm" | "pnpm" | "yarn-classic" | "yarn-berry";Defined in: index.ts:388
directory
Section titled “directory”readonly directory: string;Defined in: index.ts:387
install
Section titled “install”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
changes |
{ [key: string]: string | null; } |
Returns
Section titled “Returns”Effect<InstallResult,
Error>
readState
Section titled “readState”readonly readState: Effect<State, Error>;Defined in: index.ts:389
recoveryRequired
Section titled “recoveryRequired”readonly recoveryRequired: Effect<Option<RecoveryRequiredError>>;Defined in: index.ts:391
Present when manual recovery is required; the manager cannot be reused.