当我通过npm查询@angular/cli版本时,它会告诉我它的版本 npm list -g --depth=0 @angular/cli
>>> @angular/cli@8.3.21 但当我通过ng --version查询时,它告诉我这是8.0.0-beta.11。我不是在本地的angular项目中。我不知道如何彻底升级我的全局ng。有什么建议吗? 编辑:以下是评论中要求的一些额外信息: sw_vers -productVersion # Show Mac OSX version
>>> 10.15.2
which -a ng
>>>
我去了。它显示了开始使用自制软件的命令。我将其复制并粘贴到终端中。它成功地安装了自制软件。然后我运行了命令'brew doctor‘。它抱怨说:
Warning: You have leftover files from an older version of Xcode.
You should delete them using:
/Developer/Library/uninstall-developer-folder
所以我就这么做了。现在'brew医生‘报告:
/Users/chap$ brew doctor
Warning: You have not agreed
在自制软件的默认安装中,wget不支持-d。如何在自制软件上安装带有调试支持的wget?谢谢。
$ wget -d -o/tmp/log -qO- http://httpbin.org/get
Debugging support not compiled in. Ignoring --debug flag.
使用自制软件的rails应用服务器正在获取以下调用org.thinking_sphinx.sphinx的控制台消息(编辑)
posix_spawn("usr/local/sphinx/bin/searchd", ...): no such file or directory
Existed with exit code : 1
Throttling respawn: Will start in 10 seconds
这个东西每10秒循环一次,(?)毫无意义地产生这些错误。
searchd确实存在,并且通过国产软件安装在
usr/local/Cellar/sphinx/[sphi