Create a new environment for Vue2.0 (1), vue2.0

Source: Internet
Author: User

Create a new environment for Vue2.0 (1), vue2.0

 

The professional team is occasionally updated every week to receive APP outsourcing contacts QQ1129580542

 

Vue-cli is an official release of the vue. js project scaffolding, using vue-cli can quickly create a vue project, GitHub address is: https://github.com/vuejs/vue-cli

 

1. Install node. js

First, you need to install the node environment. You can download the installation package at http://nodejs.cn.

Just so the installed node is a fixed version, if you need a multi-version node, you can use nvm to install http://blog.csdn.net/s8460049/article/details/52396399

After the installation is complete, enter node-v and npm-v in the command line tool. If the current number is displayed, the installation is successful.

 

Ii. Install vue-cli

 

npm install -g vue-cli

It has been installed long ago ....

 

 3. Generate a project

vue init webpack Vue-Project

  

Webpack is the Template Name, and Vue-Project is the custom Project name. After the command is executed, a Project folder named after this name is generated in the current directory.

 

So OK.

After the configuration is complete, install the project dependency.

npm install

Then start the project

npm run dev

 

 

 

 

 

 

 

 

 

This result indicates that the building is successful,

 

We plan to use vue2.0 + mint ui to create a small Mall.

Write the mall interface tomorrow night,

Mint ui address https://github.com/ElemeFE/mint-ui

Https://zhuanlan.zhihu.com/p/21802181

 

Related Article

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.