创建vue项目

npm install vue
npm install --global vue-cli
vue init webpack+项目名称
This will install Vue 2.x version of the template.(这里的相关项目配置直接回车键,默认就可以了) For Vue 1.x use: vue init webpack#1.0 my-project ? Project name my-project ? Project description A Vue.js project ? Author runoob <test@runoob.com> ? Vue build standalone ? Use ESLint to lint your code? Yes ? Pick an ESLint preset Standard ? Setup unit tests with Karma + Mocha? Yes ? Setup e2e tests with Nightwatch? Yes vue-cli · Generated "my-project". 完成后cd 进入项目 cd + 项目名称
然后npm install 初始化项目
初始化完成后,npm run dev运行项目
 

猜你喜欢

转载自www.cnblogs.com/shilanlan/p/9068289.html