Vue.js Development Environment __JS

Source: Internet
Author: User
Install Nodejs

Add: https://nodejs.org/en/ NPM installs the latest version

Update NPM:NPM UPDATE-G
Install Taobao image

NPM install-g cnpm--registry= https://registry.npm.taobao.org installation Webpack

NPM Install webpack-g installation Vue Scaffold

NPM install Vue-cli-g on the hard drive to find a file folder for the project, enter the directory in the terminal

CD directory path Create project from template

Vue Init webpack-simple Engineering name < project name cannot be used in Chinese >

or create a vue1.0 project

Vue Init webpack-simple#1.0 Engineering name < project name cannot be used in Chinese >

There will be some initialization settings, as follows:

Target directory exists. Continue? (y/n) Direct carriage return defaults (and then downloads the vue2.0 template, which may require even agents)

Project name (vue-test) Direct carriage return default

Project Description (A vue.js project) Direct carriage return default

Author Write your own name. CD command into the created engineering directory

The engineering catalogue is shown in the picture:

  

Installation Project Dependencies

Be sure to install from the official warehouse, the NPM server is abroad so this step will be slow to install.

NPM Install install Vue routing module Vue-router and network request module Vue-resource

CNPM Install Vue-router vue-resource--save Startup Project

NPM Run Dev

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.