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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM