Blame

7e8693 Qwas 2024-05-03 11:46:25 1
# Linux本地开发环境配置
2
3
::: success
4
同样适用于 WSL 配置
5
:::
6
7
## 安装 git unzip
8
9
```sh
10
apt update
11
apt install -y git unzip
12
```
13
14
## nodejs 安装
15
16
```sh
17
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
18
```
19
20
### node 代理
21
22
```sh
23
export NVM_NODEJS_ORG_MIRROR=https://mirrors.aliyun.com/nodejs-release
24
```
25
26
```sh
27
echo 'export NVM_NODEJS_ORG_MIRROR=https://mirrors.aliyun.com/nodejs-release' >> /root/.bashrc
28
```
29
30
```
31
nvm install 14.21.3
32
```
33
34
### npm 代理
35
36
```sh
37
npm config set registry https://registry.npmmirror.com
38
```
39
40
## docker 安装
41
42
```sh
43
export DOWNLOAD_URL="https://mirrors.aliyun.com/docker-ce/"
44
curl -fsSL https://get.docker.com/ | sudo -E sh
45
```