'Rust nightly not installed, please install it
I was able to build and run substrate-node-template from the instructions from the cloned repo, following the instructions at https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/
However when I try to do the follow on tutorial of adding the nicks pallet I get the following error. <Rust nightly not installed, please install it!>.
This is right after I run the command -
WASM_BUILD_TOOLCHAIN=nightly-2020-10-05 cargo build --release
I tried running the command -
WASM_BUILD_TOOLCHAIN=nightly-2021-02-12 cargo build --release
I get the same error.
Here is what I currently have -
$ rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: checking for self-updates
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.50.0 (cb75ad5db 2021-02-10)
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.52.0-nightly (e9920ef77 2021-02-11)
info: cleaning up downloads & tmp directories
Previously, I had built the cloned repo and everything worked fine.
Any help resolving this is appreciated.
Solution 1:[1]
Running only cargo run --release -- --dev --tmp
without WASM_BUILD_TOOLCHAIN=nightly-2020-10-05
did the trick for me!
Solution 2:[2]
I had the same problem but i fixed it by updating rust and target "wasm" to nightly build
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Pete |
Solution 2 | sumsumcity |