macos 系统, 已添加 export PATH="$PATH:/usr/local/Cellar/node/7.7.3/bin"到.zshrc
yarn --version
//0.21.3
yarn global bin
// /usr/local/Cellar/node/7.7.3/bin
yarn global add vue-cli
// success Installed "[email protected]" with
// binaries:
// - vue
// - vue-init
// - vue-list
// - vue-build
奇怪的是通过 npm -g install vue-cli
可以使用 vue
命令