我最近将OSX从10.13.XXX升级到了10.14.6。升级后,NPM和Node均失败,并显示一条错误消息,提示我未找到任何信息。
以下是在命令行上运行node
或npm
时出现的错误消息:
dyld: Symbol not found: __ZTVN6icu_6213FieldPositionE
Referenced from: /usr/local/bin/node
Expected in: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
in /usr/local/bin/node
Abort trap: 6
似乎最快最简单的方法来解决此问题是卸载/重新安装node和npm,但我宁愿在可能的情况下解决实际问题。
更多信息:
brew reinstall node
抛出此:
/usr/local/Homebrew/Library/Homebrew/global.rb:12:in `require': cannot load such file -- active_support/core_ext/object/blank (LoadError)
from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in `<top (required)>'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `<main>'