Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Sep 6, 2023
1 parent 58243f6 commit 6b83a8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playwright-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ async function runPlaywright(nodeBin: string, runCfg: RunnerConfig): Promise<Run
const metrics: Metrics[] = [];

// Define node/npm path for execution
const npmBin = path.join(path.resolve(nodeBin), 'node_modules', 'npm', 'bin', 'npm-cli.js');
const npxBin = path.join(path.resolve(nodeBin), 'node_modules', 'npm', 'bin', 'npx-cli.js');
const npmBin = path.join(path.resolve(path.dirname(nodeBin)), 'node_modules', 'npm', 'bin', 'npm-cli.js');
const npxBin = path.join(path.resolve(path.dirname(nodeBin)), 'node_modules', 'npm', 'bin', 'npx-cli.js');
process.env.NPM_PATH = npmBin
process.env.NPX_PATH = npxBin
console.log('npmBin, npxBin: ', npmBin, npxBin)
Expand Down

0 comments on commit 6b83a8a

Please sign in to comment.