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