Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about slidev export #532

Closed
Qm-jmz opened this issue Apr 5, 2022 · 5 comments
Closed

about slidev export #532

Qm-jmz opened this issue Apr 5, 2022 · 5 comments

Comments

@Qm-jmz
Copy link

Qm-jmz commented Apr 5, 2022

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)
@tonai
Copy link
Contributor

tonai commented Apr 8, 2022

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

@Qm-jmz
Copy link
Author

Qm-jmz commented Apr 8, 2022

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.

@antfu
Copy link
Member

antfu commented Apr 14, 2022

Do you have playwright-chromium installed globally?

@immorBen
Copy link

@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

@stale
Copy link

stale bot commented Sep 17, 2022

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 stale bot added the stale label Sep 17, 2022
@stale stale bot closed this as completed Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants