Skip to content

Commit 16ddda6

Browse files
committed
新增NodeJS文档
1 parent f9753ae commit 16ddda6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/NodeJS/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 安装NodeJS
2+
3+
4+
## 使用nvm管理工具安装
5+
6+
```bash
7+
# 安装nvm
8+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
9+
10+
# 使用nvm安装指定版本 Node.js
11+
nvm install 22
12+
13+
# 查看Node版本号
14+
node -v # should print `v22.2.0`
15+
16+
# 查看npm版本号
17+
npm -v # should print `10.7.0`
18+
19+
```

0 commit comments

Comments
 (0)