Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vue.js 2 Web Development Projects

You're reading from   Vue.js 2 Web Development Projects Learn Vue.js by building 6 web apps

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781787127463
Length 398 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
CHAU GUILLAUME CHAU GUILLAUME
Author Profile Icon CHAU GUILLAUME
CHAU GUILLAUME
Arrow right icon
View More author details
Toc

Setting up our development environment


To create more complex Single-Page Applications, it is recommended to use a few tools to ease the development. In this section, we will install them to have a good development environment ready. You need to have both Node.js and npm installed on your computer. Ensure that you have at least Node 8.x, but the latest Node version is recommended.

Installing vue-cli, the official command-line tool

The first package we will need is vue-cli, which is a command-line tool that will help us create Vue applications:

  1. Enter this command in the terminal, and it will install vue-cli and save it as a global package:
      npm install -g vue-cli

Note

You may need to run this command as an administrator.

  1. To test whether vue-cli is working, print its version with the following command:
      vue --version

Code editors

Any text editor will do, but I recommend using Visual Studio Code (https://code.visualstudio.com/) or Atom (https://atom.io/). For Visual Studio Code, you need the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime