跳到內容

Options

本頁內容尚未翻譯。

Defined in: index.ts:111

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

Defined in: index.ts:117


readonly directory: string;

Defined in: index.ts:113

Project directory, containing package.json. Use the workspace root for workspace installs.


readonly ignoreScripts?: boolean;

Defined in: index.ts:116

Disables all dependency lifecycle scripts, including recovery installs.


readonly userAgent?: string;

Defined in: index.ts:119

Optional npm_config_user_agent supplied by the caller; used only as a fallback.