JuliaPluto / PlutoPDF.jl

Export Pluto notebooks to PDF from the command line
MIT License
35 stars 1 forks source link

`pluto_to_pdf` doesn't work: `node` command not found. #17

Open ultrapoci opened 3 months ago

ultrapoci commented 3 months ago

The pluto_to_pdf function fails with the following error (taken from the log file):

229 error code 1
230 error path C:\Users\nicho\.julia\scratchspaces\6eb38059-8c05-41f7-8871-5e7e2697ace6\build_dir3\node_modules\puppeteer
231 error command failed
232 error command C:\Windows\system32\cmd.exe /d /s /c node install.mjs
233 error "node" non   riconosciuto come comando interno o esterno,
233 error  un programma eseguibile o un file batch.
234 verbose exit 1

Line 233 translates to "node is not recognized as a command or batch file". This leads me to believe that node needs to be installed on the system (which is not, in my case), but the README doesn't say nothing about it.

I'm running PlutoPDF version v1.0.3. Output of versioninfo():

Julia Version 1.10.4
Commit 48d4fd4843 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 7 PRO 5875U with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
fonsp commented 2 months ago

@ultrapoci Can you check if https://github.com/JuliaPluto/PlutoPDF.jl/pull/19 fixes your issue?