简体   繁体   English

新手:无法在 MacOS 上安装 Homebrew

[英]Newbie: Unable to Install Homebrew on MacOS

I have been having certain issues while trying to setup my Mac (OS:Catalina) for a React Native Development.我在尝试为 React Native 开发设置我的 Mac (OS:Catalina) 时遇到了某些问题。

I have read multiple guides and tutorials as I am facing issues initializing a react native build (react-native init).我已经阅读了多个指南和教程,因为我在初始化 React Native 构建(react-native init)时遇到了问题。 I keep getting err lifecycle validation我不断收到错误生命周期验证

Multiple articles suggest to download Homebrew and it might solve a lot of the issues related to package folders for node etc.多篇文章建议下载 Homebrew,它可能会解决很多与 node 等包文件夹相关的问题。

When I try installing Homebrew using the below link -当我尝试使用以下链接安装 Homebrew 时 -

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

I get a message on my terminal : Curl: (7) Couldn't connect to server.我在终端上收到一条消息:Curl: (7) 无法连接到服务器。

If I try to type in the address on the browser, I get the installation code which I saved on the Mac storage as install.rb Entering '/usr/bin/Ruby install' throws a prompt that the folder doesn't exist.如果我尝试在浏览器上输入地址,我会得到我保存在 Mac 存储中作为 install.rb 的安装代码。 输入“/usr/bin/Ruby install”会提示该文件夹不存在。

I already have Xcode and Xcode Command Line Tools installed.我已经安装了 Xcode 和 Xcode 命令行工具。

I would appreciate any help I can get on how I can just prepare my system for learning react native development for iOS.如果我能在如何准备系统以学习 iOS 的 React Native 开发方面获得任何帮助,我将不胜感激。 I am at a bit of 'no clue what I am doing wrong' phase.我处于“不知道我做错了什么”阶段。

在终端上试试这个命令

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM