got an dependency issue when trying to build anchor
My anchor version:
>>> anchor --version
anchor-cli 0.24.1
I've initialized project:
anchor init solana-escrow-anchor
Then, move into directory to compile this:
>>> anchor build
BPF SDK: /Users/n.duginets/.local/share/solana/install/releases/stable-616d8d67978c325087cc5a9f33307f54eee48b6e/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/n.duginets/IdeaProjects/solana-escrow-anchor/programs/solana-escrow-anchor/Cargo.toml
workspace: /Users/n.duginets/IdeaProjects/solana-escrow-anchor/Cargo.toml
Updating crates.io index
error: failed to select a version for the requirement `aho-corasick = "^1.0.0"`
candidate versions found which didn't match: 0.7.20, 0.7.19, 0.7.18, ...
location searched: crates.io index
required by package `regex v1.8.1`
... which satisfies dependency `regex = "^1.0"` (locked to 1.8.1) of package `anchor-attribute-access-control v0.27.0`
... which satisfies dependency `anchor-attribute-access-control = "^0.27.0"` (locked to 0.27.0) of package `anchor-lang v0.27.0`
... which satisfies dependency `anchor-lang = "^0.27.0"` (locked to 0.27.0) of package `solana-escrow-anchor v0.1.0 (/Users/n.duginets/IdeaProjects/solana-escrow-anchor/programs/solana-escrow-anchor)`
And got this strange error.
How can I fix this?