我做了这些步骤:
- 更新到莫哈韦
- 安装 Xcode 10 beta3
- 运行这个命令:
sudo xcode-select -switch /Applications/Xcode-beta.app/
现在我正在尝试安装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
什么都不做,因为我的系统中没有这样的文件。我在哪里可以得到它?