本文介绍了在Mojave上进行Brew安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做下列步骤进行:
- 更新莫哈韦
- 已安装Xcode 10 beta3
- 运行此命令:
sudo xcode-select -switch /Applications/Xcode-beta.app/
现在我正在尝试安装node8:
Now I'm trying to install node8:
brew install node@8
和它给了我这个错误:
Error: The Command Line Tools header package must be installed on Mojave.
The installer is located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
仍然在做
install -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
什么都不做,因为我的系统中没有这样的文件.我在哪里可以买到?
does nothing, since there's no such file in my system. Where could I get it?
推荐答案
转到/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg位置,然后手动安装软件包.然后brew将开始工作.
Go to /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg location and install package manually. And brew will start working.
这篇关于在Mojave上进行Brew安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!