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"
}
}