节点未通过 Homebrew 下载,终端卡在这行代码上没有更新

Node not downloading through Homebrew, Terminal stuck on this line of code with no update

我在 macOS 10.12 上下载了 Homebrew。貌似下载成功了,但是node不是通过Homebrew下载的。当我尝试重新下载节点时,我收到了自制软件不支持 macOS 10.12 的警告,尽管我收到了 Homebrew 下载成功的第一次成功消息。我的问题是为什么没有下载 Node,我如何才能通过这个阶段来下载?第一次下载时,终端卡在这个阶段很长时间没有太多更新,所以我退出并重试。我尝试 "brew install node" 的第二次和随后的次数都是相同的结果(输出如下):

brew -v
Homebrew 2.1.14
Homebrew/homebrew-core (git revision fc71; last commit 2019-10-15)
brew install node
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
cayley          ical-buddy      kubernetes-cli  mame            pgrouting
glooctl         kpcli           lerna           mypy            youtube-dl

Warning: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.

==> Downloading https://nodejs.org/dist/v12.12.0/node-v12.12.0.tar.gz
Already downloaded: /Users/Derek/Library/Caches/Homebrew/downloads/36baa40ca2c3606ecc0219babae57f811a8f1b57ef290628efdc4fd555ee5f4e--node-v12.12.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/node/12.12.0 --without-npm --with-int==> make install

此时,它只是卡住了,没有任何反应。我需要做什么?

当您安装 node 时,Homebrew 会尝试下载预构建的软件包并为您安装。问题是,Homebrew 只为最新的 macOS 3 版本提供 预构建包。目前,prebuilt pkg node 仅在 macOS 10.13、10.14、10.15 上提供。

由于 Homebrew 没有为 macOS 10.12 提供预构建的 pkg,该包将从源代码构建。这就解释了为什么您的 shell 卡住了。输出字./configuremake install足以让用户意识到它也在在后台编译包

请耐心等待 make install 完成。