steps:
1.安裝HomeBrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安裝node
$ brew install node
3.使用淘寶鏡像安裝npm
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
4.安裝webpack
$ cnpm install webpack -g
5.全局安裝 vue-cli
$ npm install --global vue-cli
6.創建一個基於 webpack 模板的新項目
$ vue init webpack my-project
7.安裝依賴
$ cd my-project
$ npm install
8.運行
$ npm run dev