mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
fix(launch): replace 'npm install playwright' with 'npx playwright install' (#7410)
... in the error message
This commit is contained in:
parent
fca965cb98
commit
63e6e530ca
@ -166,7 +166,7 @@ export abstract class BrowserType extends SdkObject {
|
|||||||
const errorMessageLines = [`Failed to launch ${this._name} because executable doesn't exist at ${executable}`];
|
const errorMessageLines = [`Failed to launch ${this._name} because executable doesn't exist at ${executable}`];
|
||||||
// If we tried using stock downloaded browser, suggest re-installing playwright.
|
// If we tried using stock downloaded browser, suggest re-installing playwright.
|
||||||
if (!executablePath)
|
if (!executablePath)
|
||||||
errorMessageLines.push(`Try re-installing playwright with "npm install playwright"`);
|
errorMessageLines.push(`Run "npx playwright install" to install browsers`);
|
||||||
throw new Error(errorMessageLines.join('\n'));
|
throw new Error(errorMessageLines.join('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user