Vue 2.5 安装手记
好记性不如烂博客啊!学习Vue的安装记录下
1.安装Nodejs https://nodejs.org
2.安装python2.7 http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
3. 安装webpack----------------------------------------------------------------
npm install -g webpack
3. 安装Vue-cli----------------------------------------------------------------
npm install -g vue-cli
4. 建立一个simpleVue模板项目--------------------------------------------------
vue init webpack my-project
5. cd my-project
6. 安装项目依赖库文件-------------------------------------------------------
npm install
7. 安装element UI 库--------------------------------------------------------
npm i element-ui -S
npm i axios -S
8. 引入elementUI ,axios库到项目,在main.js文件中添加--------------------------
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
Vue.prototype.$axios = axios;
Vue.use(ElementUI);
8. npm run dev