简体   繁体   English

使用 Homebrew 安装节点 10 时出错

[英]Error while installing node 10 using Homebrew

I am trying to install node version 10 on Macbook Pro (m1 chip) using below Homebrew command.我正在尝试使用以下 Homebrew 命令在 Macbook Pro(m1 芯片)上安装节点版本 10。

brew install node@10

But getting below error:但是出现以下错误:

Error: node@10: no bottle available!
You can try to install from source with:
brew install --build-from-source node@10
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

Could anyone please help me in installing node 10 using Homebrew.谁能帮助我使用 Homebrew 安装节点 10。 Thanks in advance.提前致谢。

Brew does not yet provide an ARM version of Node 10 Brew 尚未提供 Node 10 的 ARM 版本

Did you try an install from source?您是否尝试过从源代码安装? brew install --build-from-source node@10

You might be able to run X86 command line programs by creating a Terminal that uses the Rosetta emulation layer but I have not tested this.您可以通过创建使用 Rosetta 仿真层的终端来运行 X86 命令行程序,但我尚未对此进行测试。

  • Locate the Terminal application within the Utilities folder (Finder > Go menu > Utilities)在 Utilities 文件夹中找到终端应用程序(Finder > Go 菜单 > Utilities)
  • Select Terminal.app and right-click on it, then choose “Duplicate” Select Terminal.app 并右键单击它,然后选择“复制”
  • Rename the duplicated Terminal app something obvious and distinct, like 'Rosetta Terminal'将重复的终端应用程序重命名为明显且独特的名称,例如“Rosetta Terminal”
  • Now select the freshly renamed 'Rosetta Terminal' app and right-click and choose “Get Info” (or hit Command+i)现在 select 新重命名的“Rosetta Terminal”应用程序并右键单击并选择“获取信息”(或按 Command+i)
  • Check the box for “Open using Rosetta”, then close the Get Info window勾选“Open using Rosetta”,然后关闭 Get Info window
  • Run the “Rosetta Terminal” as usual, which will fully support Homebrew and other x86 command line apps像往常一样运行“Rosetta Terminal”,它将完全支持 Homebrew 和其他 x86 命令行应用程序

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

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