Commit 7e8693
2024-05-03 11:46:25 Qwas: 新增 Linux本地开发环境配置| /dev/null .. \345\274\200\345\217\221\347\216\257\345\242\203\351\205\215\347\275\256/Linux\346\234\254\345\234\260\345\274\200\345\217\221\347\216\257\345\242\203\351\205\215\347\275\256.md | |
| @@ 0,0 1,45 @@ | |
| + | # 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 |
| + | ``` |