# Linux本地开发环境配置 ::: success 同样适用于 WSL 配置 ::: ## 安装 git unzip ```sh apt update apt install -y git unzip ``` ## nodejs 安装 ```sh curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash ``` ### node 代理 ```sh export NVM_NODEJS_ORG_MIRROR=https://mirrors.aliyun.com/nodejs-release ``` ```sh echo 'export NVM_NODEJS_ORG_MIRROR=https://mirrors.aliyun.com/nodejs-release' >> /root/.bashrc ``` ``` nvm install 14.21.3 ``` ### npm 代理 ```sh npm config set registry https://registry.npmmirror.com ``` ## docker 安装 ```sh export DOWNLOAD_URL="https://mirrors.aliyun.com/docker-ce/" curl -fsSL https://get.docker.com/ | sudo -E sh ```