1 . 全局安装 vue-cli npm install -g vue-cli 2 . 创建一个基于webpack "你要定义的项目名称" vue init webpack "你要定义的项目名称" 3 . 按照提示操作