📜  nuxt install - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:44:49.874000             🧑  作者: Mango

Nuxt Install

Nuxt.js is a Vue.js framework that simplifies the development of server-side rendered (SSR) applications. In this guide, we'll show you how to install Nuxt in your project.

Prerequisites

Before installing Nuxt, you need to ensure that you have Node.js and NPM installed on your system.

node -v
npm -v

If you don't have them installed, you can download and install them from the official Node.js website: https://nodejs.org.

Installing Nuxt

To install Nuxt, you can use NPM or Yarn. Here we'll use NPM.

npm install nuxt

Once the installation is complete, you can use the nuxt command in your terminal to create a new Nuxt project.

npx create-nuxt-app my-project

This command will create a new Nuxt project in a directory named my-project.

Running the Project

To run the project, navigate to the project directory and run the following command:

npm run dev

This command will start a development server and you can access your application at http://localhost:3000.

Conclusion

In this guide, we showed you how to install Nuxt.js in your project using NPM. Nuxt is a powerful tool that simplifies the creation of SSR applications. If you're new to Nuxt, we recommend checking out the official documentation: https://nuxtjs.org/docs.