node -v & npm -v查看版本是否符合vue-cli版本要求 sudo npm install -g vue-cli安装 指定目录下 vue init webpack project-name新建项目 按要求enter 完成~