总是要上官网搜索vue-cli,上网速度太慢,记录于此。

Vue CLI >= 3

1
2
3
4
5
npm install -g @vue/cli
# OR
yarn global add @vue/cli

vue create my-app

Vue CLI 2

1
2
3
npm install -g @vue/cli-init
# vue init now works exactly the same as vue-cli@2.x
vue init webpack my-project