ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Homebrew 更换阿里云镜像源

    Oct 22, 20215 min read

    如果你没有更换过镜像源,执行 brew 命令安装应用的时候,跟以下 3 个仓库地址有关:

    • brew.git

    • homebrew-core.git

    • homebrew-bottles

    通过以下操作将这 3 个仓库地址全部替换为 阿里云 提供的地址

    cd "$(brew --repo)"
    git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git	
    
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
    
    brew update
    brew config
    

    相关文章

    在Sass中能否进行布尔运算?

    在 Sass 中可以使用布尔类型和逻辑运算符(and、or、not)进行布尔运算。

    用 nmap 查看 HTTPS 证书详情

    使用nmap的`--script ssl-cert -p 443 <目标IP地址或域名>`命令可以检查指定域名或IP地址的HTTPS证书详细信息。

    有哪些免费的公益图库可以使用

    上述网站提供免费高质量的图片、视频和音乐,适用于商业和非商业用途,无需版权许可,涵盖多种主题和领域。

    解决npm 因为 peer依赖项版本冲突退出安装

    使用命令 `npm install --legacy-peer-deps` 可以解决新版npm中因peer依赖项版本冲突导致的安装失败问题,模拟旧版本npm的行为处理依赖关系。

    有没有类似 Scrcpy 的程序针对 iPhone

    目前没有类似Scrcpy的程序可用于操作iPhone,但可通过AirPlay和QuickTime Player在macOS上投射和操作iPhone屏幕。