first commit
This commit is contained in:
47
app/getting-started/installation/page.mdx
Normal file
47
app/getting-started/installation/page.mdx
Normal file
@@ -0,0 +1,47 @@
|
||||
# 安装指南
|
||||
|
||||
## 环境要求
|
||||
|
||||
- Node.js 18.x 或更高版本
|
||||
- pnpm 8.x 或更高版本
|
||||
|
||||
## 安装步骤
|
||||
|
||||
### 1. 克隆模板
|
||||
|
||||
```bash
|
||||
git clone <your-repo-url>
|
||||
cd nextra-docs-template
|
||||
```
|
||||
|
||||
### 2. 安装依赖
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### 3. 验证安装
|
||||
|
||||
```bash
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
如果安装成功,浏览器会自动打开 `http://localhost:3000`。
|
||||
|
||||
## 常见问题
|
||||
|
||||
### Node.js 版本过低
|
||||
|
||||
请升级到 Node.js 18.x 或更高版本:
|
||||
|
||||
```bash
|
||||
# 使用 nvm 安装
|
||||
nvm install 18
|
||||
nvm use 18
|
||||
```
|
||||
|
||||
### pnpm 未安装
|
||||
|
||||
```bash
|
||||
npm install -g pnpm
|
||||
```
|
||||
Reference in New Issue
Block a user