【问题标题】:Unable to install avm无法安装avm
【发布时间】:2022-11-09 16:53:44
【问题描述】:

我正在使用本网站的说明在我的 Windows 笔记本电脑上安装 Anchor https://book.anchor-lang.com/getting_started/installation.html#anchor

我已经执行了命令avm install latest,它给出了这个错误:

Error: The system cannot find the file specified. (os error 2)

下一个命令 avm use latest 返回此错误:

Version 0.25.0 is not installed, no current version. Error: You need to run 'avm install 0.25.0' to install it before using it.

我应该怎么办?

【问题讨论】:

    标签: windows installation anchor


    【解决方案1】:

    不幸的是,AVM 不是为在 Windows 上使用而设计的,因此您需要运行 cargo uninstall avm 然后 cargo install --git https://github.com/project-serum/anchor --tag v0.25.0 anchor-cli --lockedv0.25.0 替换为您想要的版本。我希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2022-10-17
      • 2022-11-09
      • 2021-07-26
      • 2020-10-12
      • 2023-01-30
      • 2014-01-08
      • 2011-10-17
      • 2018-06-04
      • 2014-12-05
      相关资源
      最近更新 更多