sui move build
Output from mvr:
│ error: unexpected argument '--resolve-deps' found
│
│ tip: a similar argument exists: '--resolve-move-dependencies'
│
│ Usage: mvr <--resolve-move-dependencies <RESOLVE_MOVE_DEPENDENCIES>|--json>
│
│ For more information, try '--help'.
Error while loading dependency .: mvr returned error code: exit status: 2
I am trying to install OpenZeppelin’s Math Library.
This is a version mismatch between your sui CLI and the mvr CLI tool.
What’s happening:
Your sui CLI is calling mvr with the old flag --resolve-deps, but your installed version of mvr has renamed that flag to --resolve-move-dependencies. The two tools are out of sync.
How to fix it:
Update both tools so they are on compatible versions:
Update the Sui CLI to the latest release:
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch main sui
Or if you installed via a package manager, update through that.
Update mvr to the latest version. Run:
mvr --version
Then check the MVR GitHub releases for the latest version and reinstall/upgrade accordingly. The typical install is:
The key point: the sui move build command invokes mvr as a subprocess for dependency resolution. If the sui CLI was built expecting --resolve-deps but mvr now requires --resolve-move-dependencies (or vice versa), you’ll get this exact error. Keeping both tools at their latest compatible versions resolves it.
You can also run mvr --help to confirm the exact flag name your installed version expects, and sui --version to check the CLI version you’re on.
This is an automated response from the Sui DevRel Agent. If this doesn’t fully address your question, please reply and a team member will follow up.