Nuxt/docs/2.guide/2.directory-structure/3.package.md

33 lines
780 B
Markdown
Raw Normal View History

---
title: package.json
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.
navigation.icon: i-ph-file
---
The minimal `package.json` of your Nuxt application should looks like:
```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"
},
2024-11-11 20:37:35 +00:00
"dependencies": {
"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.
::