使用vue2+element+vue-admin-template创建单页应用小记-1.安装框架环境

本文记录了使用Vue2、ElementUI和Vue-Admin-Template创建单页应用的过程,包括安装node.js、vue-cli,选择淘宝镜像加速,从git hub下载vue-admin-template,安装依赖并启动应用。参考资源包括element原版在线演示和vue-admin-template教程。
摘要由CSDN通过智能技术生成

 

  1. 安装node.js
  2. 安装vue-cli,npm install vue-cli(若想要自己重新创建应用,则安装vue-cli,若使用其他开源项目二次开发,则无需安装)

            当国外镜像反应慢,可更改为淘宝镜像,以下三个方法可选

    1. 通过config命令

      npm config set registry https://registry.npm.taobao.org 
      npm info underscore (如果上面配置正确这个命令会有字符串response)
    2. 命令行指定

      npm install --registry=https://registry.npm.taobao.org
    3. 编辑 ~/.npmrc 加入下面内容

      registry = https://registry.npm.taobao.org

       

  3. 安装vue-admin-template
    1. 仓库下载
      git clone https://github.com/PanJiaChen/vue-admin-template.git
    2. 安装依赖包
      npm install
    3. 运行应用
      npm run de
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值