slidev icon indicating copy to clipboard operation
slidev copied to clipboard

about slidev export

Open Qm-jmz opened this issue 3 years ago • 5 comments

first, i install the playwright into the '../@slidev/cli' path by using 'npm i -D playwright-chromium' and then, this is what i can see in powershell 7 when i type in 'slidev export' from another path:

●■▲ Slidev v0.29.2 (global)

theme @slidev/theme-seriph entry D:\File\ResourceCode\Python\slide\slides.md

Error: The exporting for Slidev is powered by Playwright, please installed it via npm i -D playwright-chromium at exportSlides (D:\Software\ProgrammingAndEnvironment\nodejs\node_global\node_modules@slidev\cli\dist\export-XA3FQNS5.js:66:11) at Object.handler (D:\Software\ProgrammingAndEnvironment\nodejs\node_global\node_modules@slidev\cli\dist\cli.js:274:18) at processTicksAndRejections (node:internal/process/task_queues:96:5) PS D:\File\ResourceCode\Python\slide>

Desktop (please complete the following information):

  • OS: win11 21H2 22000.556
  • Browser: chrome 100.0.4896.75(正式版本) (64 位)
  • Slidev version: v0.29.2 (global)

Qm-jmz avatar Apr 05 '22 05:04 Qm-jmz

I think you have to install playwright in the directory of you slide project that seems to be D:\File\ResourceCode\Python\slide\

tonai avatar Apr 08 '22 15:04 tonai

I think you have to install playwright in the directory of you slide project that seems to be D:\File\ResourceCode\Python\slide\

thx! But it's a pity for me that i have to install something into the project's directory, what i think goes against the goal of global installation.

Qm-jmz avatar Apr 08 '22 18:04 Qm-jmz

Do you have playwright-chromium installed globally?

antfu avatar Apr 14 '22 01:04 antfu

@Qm-jmz I think we had the same problem. As @antfu pointed out, installing playwright-chromium globally can fix it. Tweaking the command provided in the documentation as : npm i -g -D playwright-chromium

immorBen avatar Jul 19 '22 02:07 immorBen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 17 '22 03:09 stale[bot]