### Bug description

@mine-cetinkaya-rundel observed a case where an older terminal session within RStudio had a `TMPDIR` value that had been cleaned up by the system. This makes it impossible for Quarto CLI to start as the call to `Deno.makeTempDirSync()` fails. We should find a way to gracefully recover and choose another valid `TMPDIR` location.

### `quarto check` Output

_No response_

### `quarto tools check` Output

_No response_

### Checklist

- [ ] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [ ] included a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [ ] documented the quarto version you're running, by pasting the output from running `quarto check` in the "Quarto Check Output" text area?
- [ ] documented the version of the quarto tools you're running, by providing the output from running `quarto tools check` in the "Quarto Tools Check Output" text area?
- [ ] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [ ] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
jjallaire
2022-07-16T13:27:34Z
jjallaire
bug
v1.1
closed
Recover from missing TMPDIR in Deno.makeTempDirSync
https://github.com/quarto-dev/quarto-cli/issues/1425