Cargo install error

A confused install problem occured when i tried to install a rust crate.

cargo install wasm-pack
Updating crates.io index
Installing wasm-pack v0.9.1
error: failed to compile `wasm-pack v0.9.1`, intermediate artifacts can be found at `/tmp/cargo-install5XMpiq`

Caused by:
  failed to run `rustc` to learn about target-specific information

Caused by:
  could not execute process `sccache rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (never executed)

Caused by:
  No such file or directory (os error 2)
  indent preformatted text by 4 spaces

I still have no idea about this after google a while.

Env

rustc 1.41.0 (5e1a79984 2020-01-27) + Ubuntu 18.04

How did you install rust?