From a2ba78c80c193e1a24c1cb87f074da3e741618c9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 27 May 2024 09:30:07 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8E=AF=E5=A2=83=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E9=80=9F=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 运行环境安装速查.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 运行环境安装速查.md 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