Installing Nuxt Locally
Learn how to install and set up a new Nuxt project on your computer.
We'll cover the following
Creating a new Nuxt project
All code examples in this course are already set up and fully interactive. To create a Nuxt project outside of this course, you can use the terminal. You will need to install Node.js version 16.11 or newer.
Inside the terminal, confirm you have Node.js installed with the following command:
node -v
If there are no errors and you see a Node version > 16.11, you can proceed. Navigate to the directory where you want to install your Nuxt project:
cd Desktop
The following command will set up a new project with your chosen project name:
npx nuxi init <project-name>
Install the required NPM modules:
npm i
Then, run the development server:
npm run dev
The project can then be opened in the browser at the default http://localhost:3000
URL.
Get hands-on with 1400+ tech skills courses.