1.查看node版本
node -v
2.安装脚手架
npm install --global vue-cli
3.初始化
vue init webpack +项目名称
这时候会对项目做基本配置 直接回车就好
? Project name dlg
? Project description A Vue.js project
? Author
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run npm install
for you after the project has been created?
安装完成(按照提示操作即可)
cd 项目名称
npm install