码迷,mamicode.com
首页 > 其他好文 > 详细

Updating Homebrew... ...长时间卡住的问题

时间:2019-01-12 16:46:38      阅读:812      评论:0      收藏:0      [点我收藏+]

标签:排除   remote   tap   兴趣   环境   upd   url   令行   输入   

  最近做自动化测试时,深感自己对前端涉猎太少,加上对这块比较感兴趣,想花点时间在这个上面——不料在搭建vue环境时就遭遇了第一次翻车。

  在执行 $brew install vue 时,一直卡顿在了 Updating Homebrew... ...命令行上。排除了网络因素后,终于在网上找到了解决方案。

  首先要确保电脑上已经安装了brew。然后依次输入下面命令行:  

    替换brew.git:
      cd "$(brew --repo)"
      git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

    替换homebrew-core.git:
      cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
      git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

  亲测有效。

Updating Homebrew... ...长时间卡住的问题

标签:排除   remote   tap   兴趣   环境   upd   url   令行   输入   

原文地址:https://www.cnblogs.com/May-study/p/10260046.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!