Overview
This article discusses the installation process of Nuxt.js with KoaJS. It mentions using a project template for vue-cli and recommends using a version of vue-cli >= 2.1. It also provides a note regarding a bug in yarn’s engine version detection code when using a prerelease version of Node.
Features
- Integrates KoaJS and Nuxt.js
- Supports hot reloading in development mode
- Builds the nuxt.js web application for production
Installation
To install the Nuxt.js with KoaJS project template for vue-cli, follow these steps:
- Make sure to use a version of vue-cli >= 2.1.
- If you are using a prerelease version of Node (e.g. v7.6.0-rc.1), you have two options:
- Use npm install.
- Run yarn with a standard release of Node and then switch back.
Commands:
npm run dev: Start KoaJS server in development with Nuxt.js in dev mode (hot reloading). Listen on http://localhost:3000.npm run build: Build the nuxt.js web application for production.npm start: Start KoaJS server in production.
Summary
This article provides guidelines for installing Nuxt.js with KoaJS and highlights the key features of this integration. It also includes instructions on how to overcome a bug in yarn’s engine version detection code when using a prerelease version of Node.