命令行执行 : cnpm install -g vue-cli // 加-g是安装到全局 执行命令: vue init webpack demo(你新建的项目名称/文件名称) npm run dev 运行