如何使用自制软件在MACOS中安装node.js
如果我写, brew install node
==> 正在搜索类似名称的公式...错误:未找到类似名称的公式。错误:没有名称为“节点”的可用公式或木桶。它从 homebrew/cask 迁移到 homebrew/core。
如果我写,酿造医生
Warning: Suspicious https://github.com/Homebrew/homebrew-core git origin remote found.
The current git origin is:
https://github.com/Homebrew/brew
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-config
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config
帮帮我....我想使用自制软件下载节点,我想解决所有警告.........
回答
只需按照说明操作即可。
根据brew doctor
,您必须运行此命令。
git -C $(brew --repo homebrew/core) checkout master
我只是有同样的问题。一旦签出到master
,安装就可以正确运行。