2024-07-26 cocoapods pod install Could not resolve host: github.com.cnpmjs.org

解决办法:

检查 Git 配置文件中的设置:

全局配置文件:~/.gitconfig

本地配置文件:位于 Git 仓库根目录的.git/config

查找任何url条目并确保它们是正确的

[url "https://github.com/"]

    insteadOf = https://github.com.cnpmjs.org/

步骤

找到 cd ~/.gitconfig

打开 .gitconfig


文件最后改为 [url "https://github.com/"]

    insteadOf = https://github.com.cnpmjs.org/

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容