Vue 安装

环境安装步骤

1.安装 Node 环境

NodeJS下载: https://nodejs.org/

#设置npm 镜像使用淘宝镜像进行加速
npm config set proxy=null
npm config set registry http://registry.npm.taobao.org

2.安装 Vue

npm install -g @vue/cli

安装axios

npm install axios -S

安装 qs

npm install qs --save-dev

安装element-ui

npm i element-ui -S

main.js

import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')

评论

暂无评论