管理者権限でCordovaとionic、ios-simをインストールできません。

次のようなエラーになりました。

$ npm ls -g cordova ionic ios-sim
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
Abort trap: 6
$ sudo npm install -g ionic cordova
Password:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
Abort trap: 6

解決方法

$ brew reinstall node --without-icu4c
==> Reinstalling node --without-icu4c
Error: node 8.9.0 is already installed
To upgrade to 10.9.0, run `brew upgrade node`
$ brew upgrade node