37% OFF during Black Friday at Mastering Nuxt.

package.json

The package.json file contains all the dependencies and scripts for your application.

The minimal package.json of your Nuxt application should looks like:

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"
  }
}
Read more about the package.json file.