computeSystemExecutablePath() 函数
🌐 computeSystemExecutablePath() function
通过检查已知的安装位置(使用 https://pptr.nodejs.cn/browsers-api/browsers.computesystemexecutablepath),根据发布通道名称返回系统范围内的 Chrome 安装路径。如果在预期路径未找到 Chrome 实例,则会抛出错误。
🌐 Returns a path to a system-wide Chrome installation given a release channel name by checking known installation locations (using https://pptr.nodejs.cn/browsers-api/browsers.computesystemexecutablepath). If Chrome instance is not found at the expected path, an error is thrown.
语法
🌐 Signature
export declare function computeSystemExecutablePath(
options: SystemOptions,
): string;
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
options |
返回:
string