denoland/deno · error

No installation found for {}

Error message

No installation found for {}

What it means

Error "No installation found for {}" thrown in denoland/deno.

Source

Thrown at cli/tools/installer/global.rs:271

  // ensure directory exists
  if let Ok(metadata) = fs::metadata(&installation_dir)
    && !metadata.is_dir()
  {
    return Err(anyhow!("Installation path is not a directory"));
  }

  for name in &uninstall_flags.packages {
    let file_path = installation_dir.join(name);

    let mut removed = remove_file_if_exists(&file_path)?;

    if cfg!(windows) {
      removed |= remove_file_if_exists(&file_path.with_extension("cmd"))?;
      removed |= remove_file_if_exists(&file_path.with_extension("exe"))?;
    }

    if !removed {
      return Err(anyhow!("No installation found for {}", name));
    }

    // There might be some extra files to delete
    // Note: tsconfig.json is legacy. We renamed it to deno.json in January 2023.
    // Note: deno.json and lock.json files were removed Feb 2026 in favor of a sub directory
    // Use the base file path (without extension) to compute related files
    let base_file = installation_dir.join(name);
    for ext in ["tsconfig.json", "deno.json", "lock.json"] {
      // remove the plain extension files (e.g., name.deno.json, name.lock.json)
      let file_path_ext = base_file.with_extension(ext);
      remove_file_if_exists(&file_path_ext)?;

      // also remove the hidden per-command copies created at install time
      // (e.g., .name.deno.json)
      let hidden_file = get_hidden_file_with_ext(&base_file, ext);
      remove_file_if_exists(&hidden_file)?;

      // On Windows, installs use a shim with a .cmd extension, which means the

View on GitHub (pinned to 89f33cbef2)

When it happens

Trigger: Thrown at cli/tools/installer/global.rs:271 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16). Data as JSON: /api/errors/02e79b1830d7132e. Report an issue: GitHub.