2021-10-11 12:57:54 +00:00
|
|
|
---
|
|
|
|
title: package.json
|
2022-11-21 15:51:39 +00:00
|
|
|
head.title: package.json
|
2023-06-05 15:03:06 +00:00
|
|
|
description: The package.json file contains all the dependencies and scripts for your application.
|
2023-10-18 10:59:43 +00:00
|
|
|
navigation.icon: i-ph-file-duotone
|
2021-10-11 12:57:54 +00:00
|
|
|
---
|
|
|
|
|
2023-10-18 10:59:43 +00:00
|
|
|
The minimal `package.json` of your Nuxt application should looks like:
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2023-10-18 10:59:43 +00:00
|
|
|
```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"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@nuxt/devtools": "latest",
|
|
|
|
"nuxt": "latest",
|
|
|
|
"vue": "latest",
|
|
|
|
"vue-router": "latest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
::read-more{icon="i-simple-icons-npm" color="gray" to="https://docs.npmjs.com/cli/configuring-npm/package-json" target="_blank"}
|
|
|
|
Read more about the `package.json` file.
|
|
|
|
::
|