安装nodejs 0、命令行创建项目 安装cnpm:npminstallgcnpmregistryhttps:registry。npm。taobao。org 搭建vue开发环境,安装vue脚手架工具,官方命令行工具:cnpminstallglobalvuecli(此命令只需要执行一次) 创建项目并运行,在项目目录下执行如下命令: vueinitwebpackyourproject cdyourproject cnpminstall npmrundev 安装依赖组件如下命令: npmiinstallaxiosS npmielementuiS npmijscookieS npminstallvuexS npmivuetifyS 1、图形化配置项目(初学者建议使用!) 安装vuecli:npminstallgvuecli 查看安装版本:vueV 启动图形化配置页面:vueui 选npm 安装插件axios和vuetify 根据页面配置项目,建议选vue2的版本 进入目录启动:npmrunserve 2、命令行配置项目 安装vuecli:npminstallgvuecli 创建项目:vuecreatemyproject 进入刚刚创建的项目:cdmyproject 安装路由:npminstallvuerouter 创建路由:vueaddrouter vuetufy:vueaddvuetify 启动项目:npmrunserve vue脚手架:https:cli。vuejs。orgzh vuetify:https:vuetifyjs。comzhHansgettingstartedinstallation