npm 更至最新
node >=8.9
1. 全局安装脚手架 4.0.5
npm install -g @vue/cli
npm安装vue-cli时速度慢解决方法:将npm的仓库地址改为淘宝镜像:npm config set registry https://registry.npm.taobao.org --global 然后 “npm install -g @vue/cli”
2.查看版本/是否安装成功 vue -V

3. 创建项目 vue create one-object



TypeScript 支持使用 TypeScript 书写源码
Progressive Web App (PWA) Support PWA 支持。
Router 支持 vue-router 。
Vuex 支持 vuex 。
CSS Pre-processors 支持 CSS 预处理器。
Linter / Formatter 支持代码风格检查和格式化。
Unit Testing 支持单元测试。
E2E Testing 支持 E2E 测试。

4. 配置


5.回车等待下载
6.运行
cd one-object // 进入到项目根目录
npm run serve // 启动项目
网友评论