安裝Node.js
去Nodejs 官網(wǎng)下載,最新的安裝程序安裝。
安裝VUE 開發(fā)環(huán)境
在命令提示行(管理員模式)下面輸入:
npm install --global vue-cli
檢查VUE 是否安裝成功
直接在命令提示行中輸入VUE
vue
查看返回的結(jié)果是什么!
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]
出現(xiàn)以上信息表示vue 安裝成功。
開始創(chuàng)建Vue項目
依舊通過命令提示行
vue init webpack my-project
開始你的vue之旅吧~