git设置代理

git config --global http.proxy http://127.0.0.1:1080

git config --global https.proxy https://127.0.0.1:1080

#含有用户名密码的代理
git config --global http.proxy http://username:password@127.0.0.1:1080

npm设置代理

$ npm config set proxy http://server:port
$ npm config set https-proxy http://server:port

安装

# 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git
 
# 进入项目目录
cd vue-element-admin
 
# 安装依赖
npm install
 
# 建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
 
# 本地开发 启动项目
npm run dev

如果报错
vue-element-admin 的 npm install 报错npm ERR code 128 npm ERR An unknown git error occurred

先执行命令

git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"

再执行安装,忽略warning

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

多语言版本在这
https://github.com/PanJiaChen/vue-element-admin/tree/i18n

参考
https://blog.csdn.net/qq_29720657/article/details/124671427?spm=1001.2014.3001.5502

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐