安装环境
windows下使用WSL 带翻墙功能(需要配置linux 网络代理)
官网安装文档
https://solana.com/zh/docs/intro/installation
第一步:安装rust
curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh -s — -y
安装完成截图

第二步:安装 Solana CLI
sh -c “$(curl -sSfL https://release.anza.xyz/stable/install)”
solana –version 检测是否安装成功
agave-install update 用作更新 solana的版本
第三步:安装 anchor & avm
cargo install –git https://github.com/coral-xyz/anchor avm –force
anchor 是solana 的项目构建器
avm 是 anchor 的版本管理器
anchor –version 检测anchor是否安装成功
第四步:安装Node.js 和 Yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
nvm install node
npm install –global yarn