1.安装nodejs及Git;
2.安装脚手架 >npm install -g vue-cli
npm install -g @vue/cli //V3.0
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/vue-cli failed, reason: unable to verify the first certificate
报以上错误,请执行:npm config set strict-ssl false
>vue --可以看到命令用户
>vue list --可以看到初始化项目的模板,一般选择webpack
3.初始化项目 >vue init webpack auavue
vue create auavue //v3.0
3.1 要求输入项目名、项目描述、作者、ES6风格Y
3.2 Standart ---选择标准模板即可
AirBNB
none
3.4 Setup unit tests with Karma+Mocha? N,我们自己测试;
3.5 Setup e2e tests with Nightwatch? N
4.确认生成项目及模板
》dir 或 》ls 即有auavue目录存在
5.安装相关依赖
>cd auavue
>npm install //成功之后,会多一个node_modules目录,超大
6.启动开发环境
>npm run dev
cd auavue
npm run server //v3
npm run build //cle v3
http://localhost:8080
7.awesome图标库使用
cd e:\dev\auavue
npm install vue-awesome //node_modules\vue-awesome查看是否有文件夹
http://fontawesome.dashgame.com/ 图标名称