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

Cannot install mdbook using readme command #1126

Closed
515hikaru opened this issue Dec 15, 2018 · 0 comments · Fixed by #1128
Closed

Cannot install mdbook using readme command #1126

515hikaru opened this issue Dec 15, 2018 · 0 comments · Fixed by #1128

Comments

@515hikaru
Copy link
Contributor

When I tried build for the first time, I cannot install mdbook.

When I ran cargo install mdbook --version ^0.2 --force, the following error was output.

    Updating crates.io index
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `mdbook`

Caused by:
  the given version requirement is invalid
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `CONTRIBUTING.md`

Caused by:
  the given version requirement is invalid
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `LICENSE-APACHE`

Caused by:
  the given version requirement is invalid
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `LICENSE-MIT`

Caused by:
  the given version requirement is invalid
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `README.md`

Caused by:
  the given version requirement is invalid
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `book.toml`

Caused by:
  the given version requirement is invalid
warning: the `--vers` provided, `CODE_OF_CONDUCT.md`, is not a valid semver version

historically Cargo treated this as a semver version requirement accidentally
and will continue to do so, but this behavior will be removed eventually
error: failed to parse the version requirement `CODE_OF_CONDUCT.md` for dependency `src`

Caused by:
  the given version requirement is invalid
     Summary Failed to install mdbook, CONTRIBUTING.md, LICENSE-APACHE, LICENSE-MIT, README.md, book.toml, src (see error(s) above).
error: some crates failed to install

But when I ran cargo install mdbook --version 0.2 --force (remove ^), I could install mdbook.

Is this way is ok? If not, how should I install this?

Environment

  • rustc 1.31.0 (abe02cefd 2018-12-04)
  • cargo 1.31.0 (339d9f9c8 2018-11-16)
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

Successfully merging a pull request may close this issue.

1 participant