vue创建新项目

新建一个文件夹,在该文件夹路径下打开终端

1、>vue init webpack test //test 是新建的项目名称,自己定义

2、

Project name test

? Project description A Vue.js project

? Author

? Vue build standalone

? Install vue-router? Yes

? Use ESLint to lint your code? No // 为了避免用严格模式,防止报许多错误

? Set up unit tests No //避免严格模式

? Setup e2e tests with Nightwatch? No //避免严格模式

? Should we run `npm install` for you after the project has been created? (recommended) npm

3、之后等待一段时间后,切换到 新项目文件夹下:cd test

4、然后:npm install

5、安装完毕:npm run dev