Learn Nuxt with a Collection of 100+ Tips!

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"
  },
  "devDependencies": {
    "@nuxt/devtools": "latest",
    "nuxt": "latest",
    "vue": "latest",
    "vue-router": "latest"
  }
}
Read more about the package.json file.