There are two ways to get started with Nuxt easily. The easiest way is by using the Nuxt scaffolding tool, create-nuxt-app, which installs all the Nuxt dependencies and default directories automatically for you. The other way is to start from scratch by using a package.json file only. Let's discover how you can do this.
Using create-nuxt-app
create-nuxt-app is a scaffolding tool created by the Nuxt team that you can use to install your project quickly. What you need to do is use npx to run create-nuxt-app on your favorite terminal:
$ npx create-nuxt-app <project-name>
npx is shipped by default since npm 5.2.0, but you can make sure you have it installed by checking its version on your terminal, as follows:
$ npx --version
6.14.5
During the process of installing the Nuxt project, you will be asked some questions to integrate with Nuxt, as follows:
- Choose a programming language:
JavaScript
TypeScript
- Choose a package manager:
Yarn
Npm
- Choose a UI framework...