mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2025-07-26 08:32:26 +08:00
fix: installation tool on Windows (#345)
This commit is contained in:
parent
5df011ad4b
commit
7dc689eee7
@ -33,7 +33,7 @@ const install = defineTool({
|
||||
handle: async context => {
|
||||
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.launchOptions.browserName ?? 'chrome';
|
||||
const cliUrl = import.meta.resolve('playwright/package.json');
|
||||
const cliPath = fileURLToPath(path.join(cliUrl, '..', 'cli.js'));
|
||||
const cliPath = path.join(fileURLToPath(cliUrl), '..', 'cli.js');
|
||||
const child = fork(cliPath, ['install', channel], {
|
||||
stdio: 'pipe',
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user