Skip to content

error executing wasm-pack new (cannot parse 'latest' as a semver) #907

@laurogama

Description

@laurogama

🐛 Bug description

When running wasm-pack new rust-example an error in cargo-generate occurs
the following log is printed

error: the `--vers` provided, `latest`, is not a valid semver version: cannot parse 'latest' as a semver

Error: Installing cargo-generate with cargo
Caused by: failed to execute `cargo install`: exited with exit code: 101
  full command: "cargo" "install" "--force" "cargo-generate" "--version" "latest" "--root" "/home/lgama/.cache/.wasm-pack/.cargo-generate-cargo-install-latest"

🤔 Expected Behavior

a new wasm-pack project should be created

👟 Steps to reproduce

Have a previous rust toolchain installed
install wasm-pack with curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
execute wasm-pack new rust-example

🌍 Your environment

wasm-pack version: 0.9.1
rustc version: rustc 1.45.0 (5c1f21c3b 2020-07-13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions