diff --git a/运行环境安装速查.md b/运行环境安装速查.md new file mode 100644 index 0000000..b77990c --- /dev/null +++ b/运行环境安装速查.md @@ -0,0 +1,40 @@ +# 各类软件速查 + +## NodeJs[下载页面](https://nodejs.org/en/download/package-manager) + +Linux & macOS +```bash +# installs nvm (Node Version Manager) +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash + +# 需要重启shell 或者 重载配置 +source ~/.bashrc +# download and install Node.js +nvm install 20 + +# (可选) 全局安装vite 和 pnpm +npm i -g vite pnpm +# (可选) 配置pnpm, 开启install -g +pnpm setup +``` + +## GoLang[下载页面](https://go.dev/dl/)[安装说明]( https://go.dev/doc/install) +Linux +```bash +wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz +sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz +export PATH=$PATH:/usr/local/go/bin +go verion +``` + +## Rust [下载页面](https://forge.rust-lang.org/infra/other-installation-methods.html) +Linux +```bash +sudo apt install gcc +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh + +# 需要重启shell 或者 重载配置 +source ~/.bashrc +rustup + +``` \ No newline at end of file