jdx/mise · error

is not available: required binary ' ' not found; add it to…

Error message

{} is not available: required binary '{binary}' not found; add it to [tools] or install it manually

What it means

Package plugins execute an external binary (declared by the plugin) via Lua hook actions. Before running any hook, `checked_hook_env` verifies that the required binary exists on the PATH that will be given to the hook; if it is missing, mise fails with the plugin name and the missing binary instead of spawning a hook that cannot run. The message points at mise's `[tools]` config because that is the usual way to make the binary available.

Solutions

  1. Add the provider tool to the project's [tools] (mise.toml) so mise installs it and puts its bin dir on PATH.
  2. Run `mise install` to install any declared-but-missing tools, then retry the package operation.
  3. Check `which <binary>` in the failing shell; if absent, fix PATH (shims enabled, correct mise activate) or install the binary manually.
  4. Ensure the required binary name in the plugin definition matches the actual executable the provider tool ships.

Example fix

# before (mise.toml) — plugin binary provider not declared
[plugins]
mypackages = "..."

# after — declare the tool that provides the required binary
[tools]
"github:owner/provider" = "latest"

# then
mise install
Defensive patterns

Strategy: validation

Validate before calling

// Ensure the plugin's required binary is on PATH before package operations
import { execSync } from 'node:child_process';
function requireOnPath(binary) {
  try { execSync(`command -v ${binary}`, { shell: '/bin/bash', stdio: 'ignore' }); }
  catch { throw new Error(`'${binary}' not on PATH — add its provider to [tools] and run mise install`); }
}
requireOnPath('npm'); // example: the plugin's required binary

Type guard

const onPath = (b) => { try { execSync(`command -v ${b}`, { stdio: 'ignore', shell: '/bin/bash' }); return true; } catch { return false; } };

Try / catch

try { await misePkgInstall(plugin, pkgs) } catch (e) { if (String(e).includes('required binary') && String(e).includes('not found')) { const bin = e.message.match(/binary '(.*?)'/)?.[1]; console.error(`Install the tool providing '${bin}' via [tools] or your system package manager`); } else throw e; }

Prevention

When it happens

Trigger: Any plugin action (`action`, `uninstall_action`) or `installed` status check when `missing_from_path` finds the plugin's required binary absent from the hook environment's PATH — e.g. the tool providing the binary was never installed, was uninstalled, or is installed but not on PATH for this shell/environment.

Common situations: A mise.toml `[tools]` entry for the provider tool is missing or removed; the tool is installed for a different environment/profile but not the active one; PATH manipulation (direnv, shim ordering) hides the tool's bin dir; running mise in a CI container without the provider tool.

Understand the failure class

Background: "not installed", "pip install", "required for": how missing-dependency errors surface across open-source libraries — this error's family across 34 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/b0fd10f75d66044a. Report an issue: GitHub.

Appendix: source

Thrown at src/system/packages/plugin.rs:231

                let mut paths = Self::sync_lookup_path();
                paths.extend(toolset.list_paths(&config).await);
                let path =
                    join_paths(&paths).wrap_err("failed to construct package plugin PATH")?;
                let mut env: IndexMap<String, String> = crate::env::vars_safe().collect();
                env.insert("PATH".into(), path.to_string_lossy().into_owned());
                Ok(env)
            })
            .await
    }

    async fn checked_hook_env(&self) -> Result<&IndexMap<String, String>> {
        let env = self.hook_env().await?;
        let paths = env
            .get("PATH")
            .map(|path| split_paths(path).collect::<Vec<_>>())
            .unwrap_or_default();
        if let Some(binary) = self.missing_from_path(&paths) {
            bail!(
                "{} is not available: required binary '{binary}' not found; add it to [tools] or install it manually",
                self.name
            );
        }
        Ok(env)
    }

    fn requests(pkgs: &[PackageRequest]) -> Vec<VfoxPackageRequest> {
        pkgs.iter()
            .map(|pkg| VfoxPackageRequest {
                name: pkg.name.clone(),
                version: pkg.version.clone(),
            })
            .collect()
    }

    fn vfox(&self, env: &IndexMap<String, String>) -> Result<vfox::Vfox> {
        let (mut vfox, _) = self.plugin.vfox()?;

View on GitHub (pinned to 533346cc37)