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
范围 | 类型 | 描述 |
---|---|---|
options |
Returns:
string