安装 vue-cli npm install --global vue-cli初始化基于 webpack 模板的新项目 vue init webpack my-project安装依赖(node_modules) npm install