Skip to content
Latchkey

Optional Dependency - CI/CD Glossary Definition

An optional dependency is a package whose installation failure does not fail the overall install, declared in optionalDependencies. The consuming code is expected to handle its absence.

Where it appears

Platform-specific native binaries are often optional, so installing on Linux does not fail just because a macOS-only variant could not build.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →