PackageManager
此内容尚不支持你的语言。
Defined in: index.ts:376
Properties
Section titled “Properties”readonly agent: "npm" | "pnpm" | "yarn-classic" | "yarn-berry";Defined in: index.ts:378
directory
Section titled “directory”readonly directory: string;Defined in: index.ts:377
install
Section titled “install”readonly install: (changes: {[key: string]: string | null;}) => Effect<InstallResult, Error>;Defined in: index.ts:383
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:379
recoveryRequired
Section titled “recoveryRequired”readonly recoveryRequired: Effect<Option<RecoveryRequiredError>>;Defined in: index.ts:381
Present when manual recovery is required; the manager cannot be reused.