I got an error while using npm or yarn which is based on node js.

Error:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib

  Referenced from: /usr/local/bin/node

  Reason: image not found

Fix:

Reinstall node js

https://nodejs.org/en/download/package-manager/

en_USEnglish