1.基本需求
Node >= 18.17
2.安装方式
a.自动安装
npx create-next-app@latest
安装时将出现以下提示

b.手动安装
npm install next@latest react@latest react-dom@latest
在package.json中添加以下 scripts
- 01
- 02
- 03
- 04
- 05
- 06
- 07
{
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
}
}