error: could not find `sui` in https://github.com/MystenLabs/sui.git?branch=devnet with version `*`

203 Views Asked by At

When trying to install sui binaries using

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui

as suggested by the official docs,

gives the below error

Updating git repository `https://github.com/MystenLabs/sui.git` 
error: could not find `sui` in https://github.com/MystenLabs/sui.git?branch=devnet with version `*`

What could be the possible reason?

1

There are 1 best solutions below

1
On BEST ANSWER

I used the below command which includes the tag to install it

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet --tag devnet-<version> sui

where you can replace version as required (e.g v1.3.0)