"nuxt": ^4.3.1 nodejs: v22.17.1
1. 直接到github下载模板, https://github.com/nuxt/starter/tree/v4
- 也可以用npm安装
npm create nuxt <project-name>
eg:npm create nuxt nuxtdemo
- 更改配置: package.json -> name
2. npm install --global yarn //yarn --version 1.22.22
yarn config set registry https://registry.npmmirror.com 切换到淘宝源
yarn install
3. yarn dev
http://localhost:3000/
//vs code插件
Vetur Vue 3 Snippets
Naive Ui Snippets //代码提示
UnoCSS //代码提示