jdx/mise · error

failed to resolve configured install dependency

Error message

failed to resolve configured install dependency '{}' for '{}' while offline

What it means

Raised in install-context dependency resolution when mise is running offline (`mise install --offline` or offline mode) and a tool's configured install dependency cannot be resolved from already-installed versions. Mise refuses to guess rather than silently installing a wrong/missing dependency version.

Solutions

  1. Go online and run `mise install` once so the dependency version is resolved and installed
  2. Install the dependency version explicitly first: `mise install <dep>@<version>`
  3. Remove the dependency from tool config if it is genuinely not needed
  4. Pin the dependency's exact version in config so offline resolution can match an installed version

Example fix

// before (offline, unpinned dependency)
[tools]
node = "22"
python = "latest"  # unresolved offline
// after
[tools]
node = "22"
python = "3.12"  # matches an installed version, resolvable offline
Defensive patterns

Strategy: validation

Validate before calling

# ensure dependency versions are installed before going offline
mise install
mise ls <dep>  # confirm the configured version is present

Prevention

When it happens

Trigger: Running `mise install --offline` (or with offline enabled) where a tool in mise.toml declares a dependency (`depends`/configured install dependency) whose requested version is not resolved in the local toolset/installed versions.

Common situations: Fresh machine or CI cache where the dependency tool version was never installed; `.tool-versions`/mise.toml updated to a new dependency version while offline; airplane/no-network CI runners.

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/73bdf50276caeebd. Report an issue: GitHub.

Appendix: source

Thrown at src/install_context.rs:149

                        "failed to resolve configured install dependency '{}' for '{}'",
                        dependency, request
                    )
                })?;
        }
        for (backend, dependency) in toolset.list_current_versions() {
            if !backend.is_version_installed(config, &dependency, true) {
                let unresolved = !dependency.resolved_from_lockfile()
                    && match &dependency.request {
                        ToolRequest::Prefix { .. } | ToolRequest::Sub { .. } => true,
                        ToolRequest::Version { version, .. } => {
                            version == "latest" || backend.is_rolling_channel(version)
                        }
                        ToolRequest::Ref { .. }
                        | ToolRequest::Path { .. }
                        | ToolRequest::System { .. } => false,
                    };
                if unresolved {
                    bail!(
                        "failed to resolve configured install dependency '{}' for '{}' while offline",
                        dependency.request,
                        request
                    );
                }
                bail!(
                    "tool '{}' requires configured install dependency '{}', but its selected version is not installed\n\
                     hint: Run `mise install {}` before installing '{}'. Remove the dependency from configuration to allow the install hook to rely on system PATH instead.",
                    request,
                    dependency.request,
                    dependency.request,
                    request,
                );
            }
        }
        let paths = toolset.list_paths_strict(config, request).await?;
        let context = Self {
            declarations,

View on GitHub (pinned to 533346cc37)