NV3001Package Manager

Dependency Resolution Error

The package manager failed to solve a compatible set of package versions satisfying all SemVer constraints.

BREAKPOINT: main.nv:42rax = 0x7ffd9b82rbx = 0x00000001

Why this error occurs

Two or more dependencies require conflicting versions of a shared package, a requested version does not exist in registry, or cyclical dependency constraints.

Incorrect Code
// conflicting requirements in nextviper.toml
[dependencies]
pkg_a = "=1.0.0" # requires shared_lib ^1.0.0
pkg_b = "=2.0.0" # requires shared_lib >=3.0.0
Corrected Code
// loosen version constraints or upgrade packages
[dependencies]
pkg_a = "^1.2.0"
pkg_b = "^2.1.0"

Troubleshooting & Remediation

  • 1Run 'nextviper list' to inspect current dependency tree.
  • 2Loosen exact SemVer constraints ('=1.0.0' -> '^1.0.0').
  • 3Update dependencies with 'nextviper update'.

Relevant CLI Commands

$ nextviper list$ nextviper update$ nextviper install