我刚刚升级了&更新了我的自制程序,现在如果我运行brew doctor
,我会收到以下错误,但无法运行。我可以删除意外的头文件还是有更好的解决方案?
Warning: Your XQuartz (2.7.6) is outdated
Please install XQuartz 2.7.7:
https://xquartz.macosforge.org
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/node/ares.h
/usr/local/include/node/ares_version.h
/usr/local/include/node/eio-emul.h
/usr/local/include/node/ev-emul.h
/usr/local/include/node/node.h
/usr/local/include/node/node_buffer.h
/usr/local/include/node/node_object_wrap.h
/usr/local/include/node/node_version.h
/usr/local/include/node/uv-private/eio.h
/usr/local/include/node/uv-private/ev.h
/usr/local/include/node/uv-private/ngx-queue.h
/usr/local/include/node/uv-private/tree.h
/usr/local/include/node/uv-private/uv-unix.h
/usr/local/include/node/uv-private/uv-win.h
/usr/local/include/node/uv.h
/usr/local/include/node/v8-debug.h
/usr/local/include/node/v8-preparser.h
/usr/local/include/node/v8-profiler.h
/usr/local/include/node/v8-testing.h
/usr/local/include/node/v8.h
/usr/local/include/node/v8stdint.h
答案 0 :(得分:3)
基本上,您只需升级系统中的XQuartz并忽略所有其他警告。
您可以构建一些使用X11组件的软件,所以只需转到https://xquartz.macosforge.org/,下载并安装最新版本。
很明显,您在不使用自制程序的情况下安装node.js,以便通过自制程序将头文件添加到/ use / local / include / not中并将其混淆。除非您遇到警告消息中提到的某些问题,否则您可以忽略它们。