mirror of
https://gitee.com/ineo6/homebrew-install.git
synced 2025-04-05 19:41:45 +08:00
feat: 添加faq引导提示
This commit is contained in:
parent
de7341c10c
commit
c3540b25e2
@ -17,6 +17,9 @@ const Notice: React.FC<NoticeProps> = () => {
|
||||
style={{ fontSize: '14px', fontWeight: 'bold', paddingTop: '4px' }}
|
||||
>
|
||||
需要帮助?
|
||||
<div style={{ fontSize: '12px', color: '#454d64' }}>
|
||||
建议先浏览 <a href="/guide/faq/">FAQ</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className="__dumi-default-layout-notice-qr" />
|
||||
<div>扫码回复"brew"进群</div>
|
||||
|
@ -7,7 +7,7 @@
|
||||
z-index: 19;
|
||||
box-sizing: border-box;
|
||||
width: @s-toc-width;
|
||||
height: 180px;
|
||||
height: 198px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #0074af;
|
||||
border-radius: 4px;
|
||||
|
@ -102,4 +102,35 @@ To retry an incomplete download, remove the file above.
|
||||
- `/bin/bash` => `bash` => `.bash_profile`
|
||||
- `/bin/zsh` => `zsh` => `.zprofile`
|
||||
|
||||
## Xcode Command Line 安装问题
|
||||
|
||||
错误如下:
|
||||
|
||||
```
|
||||
xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools'
|
||||
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
|
||||
```
|
||||
|
||||
这是因为`CommandLineTools`未安装的原因,可以通过命令安装:
|
||||
|
||||
```shell
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
如果提示"不能下载该软件,因为网络出现问题",可以在官网下载安装。
|
||||
|
||||
1. 打开 https://developer.apple.com/download/more/
|
||||
2. 搜索 Command Line
|
||||
|
||||
因为这里罗列的所有的版本,所以我们还需要确定支持的版本,我们这样操作:
|
||||
|
||||
1. 确定当前系统版本
|
||||
2. 打开`App Store`搜索`Xcode`
|
||||

|
||||
|
||||
3. 点击"版本历史记录"找到支持你的系统版本的`Xcode`版本号
|
||||

|
||||
|
||||
举例子我的电脑是`Big Sur 11.2`,在版本记录里看到`12.4`就是`Xcode`对应的版本号,然后我们找到"Command Line Tools for Xcode 12.4"下载。
|
||||
|
||||
[hosts]: https://mp.weixin.qq.com/s/gFNP2Pk81vg7nE1XsDingg
|
||||
|
@ -35,6 +35,8 @@ order: 1
|
||||
|
||||
<img src="https://i.loli.net/2021/01/03/sXGryYHa3JhB9QL.png" width="600" alt="湖中剑-homebrew" />
|
||||
|
||||
如果安装遇到问题,强烈建议先通过 [FAQ](/guide/faq/) 自查,新问题的解决方案会持续更新。
|
||||
|
||||
[github]: https://github.com/ineo6/homebrew-install
|
||||
[issues]: https://github.com/ineo6/homebrew-install/issues
|
||||
[pulls]: https://github.com/ineo6/homebrew-install/pulls
|
||||
|
@ -157,6 +157,8 @@ source ~/.zprofile
|
||||
|
||||
<img src="https://i.loli.net/2021/01/03/sXGryYHa3JhB9QL.png" width="600" alt="湖中剑-homebrew" />
|
||||
|
||||
如果安装遇到问题,强烈建议先通过 [FAQ](/guide/faq/) 自查,新问题的解决方案会持续更新。
|
||||
|
||||
## 如果对您有帮助
|
||||
|
||||
分享、收藏,能让更多人能发现文章,这也是对我的认可和鼓励,谢谢。
|
||||
@ -167,3 +169,4 @@ source ~/.zprofile
|
||||
- [中科大源](http://mirrors.ustc.edu.cn/help/brew.git.html)
|
||||
|
||||
[issues]: https://github.com/ineo6/homebrew-install/issues
|
||||
[pulls]: https://github.com/ineo6/homebrew-install/pulls
|
||||
|
Loading…
x
Reference in New Issue
Block a user