这里使用脚手架create-next-app
来创建项目
使用命令
npm install -g create-next-app
下载安装就好了
实例如下
D:\work\nodejs\vscode\react\20201010>npm install -g create-next-app
D:\installSoftware\nodejs-12183\node_global\create-next-app -> D:\installSoftware\nodejs-12183\node_global\node_modules\create-next-app\dist\index.js
+ create-next-app@9.5.5
added 1 package from 1 contributor in 3.496s
D:\work\nodejs\vscode\react\20201010>create-next-app --help
Usage: create-next-app <project-directory> [options]
Options:
-V, --version output the version number --use-npm
-e, --example [name]|[github-url]
An example to bootstrap the app with. You can use an example name from the official Next.js r