Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not find when-cli in registry crates-io with version * #7

Closed
khushmeeet opened this issue Dec 8, 2021 · 2 comments
Closed

Comments

@khushmeeet
Copy link

When trying to install when-cli using cargo, I am getting this output

❯ cargo install when-cli
    Updating crates.io index
error: could not find `when-cli` in registry `crates-io` with version `*`

Can you let me know, what am I doing wrong?

@mitsuhiko
Copy link
Owner

I cannot answer this question. I assume this might have been a temporary caching issue on crates.io. I cannot reproduce this. Please reopen if this still happens.

@ldwSpirent
Copy link

I had the same problem... I think you have to switch to the nightly rust toolchain.

Note also that you may need the to run the toolchain with this command on Ubuntu:

I had to update the toolchain as described above, then make sure that my path was picking up the right toolchain.

This is kind of a hack, but I had to install with this command after updating the toolchain:

  • PATH=~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin:${PATH} cargo --verbose install when-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants