Maganoos
Maganoos11h ago

Error while installing using cargo

all I did was run the supplied command from the website (cargo install deno --locked) after installing cargo, however it errors out during the build, is there something I'm missing here?
error[E0658]: `let` expressions in this position are unstable
--> /home/magnus/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deno_ops-0.238.0/op2/dispatch_slow.rs:150:8
|
150 | && let Some(required) = config.required
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information

//// more logs ////

error: could not compile `deno_ops` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v2.5.4`, intermediate artifacts can be found at `/tmp/cargo-installvSiHnk`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path~~.~~
error[E0658]: `let` expressions in this position are unstable
--> /home/magnus/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deno_ops-0.238.0/op2/dispatch_slow.rs:150:8
|
150 | && let Some(required) = config.required
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information

//// more logs ////

error: could not compile `deno_ops` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v2.5.4`, intermediate artifacts can be found at `/tmp/cargo-installvSiHnk`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path~~.~~
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?