初步构建Vue项目
2020-06-01 本文已影响0人
古晨然
首先安装 node.js
输入 node -v 查看node版本,

尚未安装 https://nodejs.org/en/ 下载对应系统的node,自行安装即可
1、全局安装vue脚手架
npm install -g vue-cli
2、cd 到某个文件目录 vue init webpack + 文件名

3、执行Yes, use NPM

4、cd project 然后 npm run dev

项目启动成功,复制链接到浏览器打开

一个完整的Vue实例就成功了
Vue搭配element-ui使用更方便哦 https://element.eleme.io/#/zh-CN/component/installation