Commit 8734812
authored
Fail fast when npm is missing during configure (#14421)
* Warn and skip preview build when npm is missing during configure
Check for npm at the start of configure() instead of failing late in
buildQuartoPreviewJs() after ~300MB of downloads. When npm is missing,
emit a warning explaining that the quarto preview live-reload feature
will not be available, then skip the quarto-preview.js build step.
The rest of Quarto (render, pdf, publish) builds and runs normally.
* Error out instead of skipping when npm is missing
A half-built Quarto without quarto-preview.js would later fail at
runtime when `quarto preview` tries to read the missing file, producing
another confusing error. Requiring npm upfront keeps the contract
simple: configure succeeds only if all required tools are available.1 parent 67d2311 commit 8734812
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
0 commit comments