- 安装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 de
- 仓库下载