package.json
package.json 文件包含了你的应用程序的所有依赖项和脚本。
你的 Nuxt 应用程序中最小化的 package.json
应该如下所示:
package.json
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"nuxt": "latest",
"vue": "latest",
"vue-router": "latest"
}
}