- 安装node.js
- 安装vue-cli,npm install vue-cli(若想要自己重新创建应用,则安装vue-cli,若使用其他开源项目二次开发,则无需安装)
当国外镜像反应慢,可更改为淘宝镜像,以下三个方法可选:
-
通过config命令
npm config set registry https://registry.npm.taobao.org npm info underscore (如果上面配置正确这个命令会有字符串response)
-
命令行指定
npm install --registry=https://registry.npm.taobao.org
-
编辑
~/.npmrc
加入下面内容registry = https://registry.npm.taobao.org
-
- 安装vue-admin-template
- 仓库下载
git clone https://github.com/PanJiaChen/vue-admin-template.git
- 安装依赖包
npm install
- 运行应用
npm run dev
- git hub地址:https://github.com/PanJiaChen/vue-admin-template
- 仓库下载
- 参考
- element原版在线演示地址https://panjiachen.github.io/vue-element-admin/
- element原版代码仓库https://github.com/PanJiaChen/vue-element-admin
- vue-admin-template教程链接:https://segmentfault.com/a/1190000009275424
最后
以上就是奋斗康乃馨最近收集整理的关于使用vue2+element+vue-admin-template创建单页应用小记-1.安装框架环境的全部内容,更多相关使用vue2+element+vue-admin-template创建单页应用小记-1内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复