Fix option 1: Add package.json with plugin
From the root of your Quarto project (the same directory as netlify.toml):
-
If you do not have
package.jsonyet, create it with:npm init -y -
Install the Quarto Netlify plugin as a dependency:
npm install --save-dev @quarto/netlify-plugin-quarto # or equivalently: # npm install -D @quarto/netlify-plugin-quartoThis will add something like:
{ "devDependencies": { "@quarto/netlify-plugin-quarto": "^0.0.5" } }to
package.json.[2][5][1] -
Ensure your
netlify.tomlin the repo root contains at least:[[plugins]] package = "@quarto/netlify-plugin-quarto" [build] command = "quarto render" publish = "_site" -
Commit
package.json,package-lock.json(orpnpm-lock.yaml/yarn.lock), andnetlify.toml, push to GitHub, and trigger a new deploy.[2][3]