安装Node.js
去Nodejs 官网下载,最新的安装程序安装。
安装VUE 开发环境
在命令提示行(管理员模式)下面输入:
npm install --global vue-cli
检查VUE 是否安装成功
直接在命令提示行中输入VUE
vue
查看返回的结果是什么!
Usage: vue <command> [options]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
init generate a new project from a template
list list available official templates
build prototype a new project
create (for v3 warning only)
help [cmd] display help for [cmd]
出现以上信息表示vue 安装成功。
开始创建Vue项目
依旧通过命令提示行
vue init webpack my-project
开始你的vue之旅吧~