Options
本頁內容尚未翻譯。
Defined in: index.ts:111
Properties
Section titled “Properties”agent?
Section titled “agent?”readonly agent?: "npm" | "pnpm" | "yarn-classic" | "yarn-berry";Defined in: index.ts:115
Explicit selection takes precedence over detection.
directory
Section titled “directory”readonly directory: string;Defined in: index.ts:113
Project directory, containing package.json. Use the workspace root for workspace installs.
userAgent?
Section titled “userAgent?”readonly userAgent?: string;Defined in: index.ts:117
Optional npm_config_user_agent supplied by the caller; used only as a fallback.