Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib in VSCode Terminal

For my case, i only get the error when opening accessing terminal (zsh) via VS Code.

Upon opening VS Code terminal OR running node command, i get this error:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
[1]    4506 abort      node

However, it runs fine when running via iTerm. Tried running brew update and brew upgrade and a few other recommended answers.

Anything am i missing?

like image 947
jaanhio Avatar asked Feb 09 '19 07:02

jaanhio


4 Answers

Piggybacking off Jason's answer, another option is to just run

brew upgrade node
like image 132
ihake Avatar answered Nov 20 '22 05:11

ihake


Found the answer here

Run this

brew uninstall node icu4c
brew install node
like image 22
Jason Avatar answered Nov 20 '22 07:11

Jason


You might follow these steps.

> which node
/usr/local/bin/node
> rm /usr/local/bin/node
> brew unlink node
> brew link --overwrite node

This should solve the problem.

like image 20
Rakesh K Avatar answered Nov 20 '22 07:11

Rakesh K


A brew reinstall icu4c fixed the problem on macOS 10.15.6.

It also helps to watch your logs when starting a broken package (node, pg, etc. – for pg it's tail -f /usr/local/var/log/[email protected] – not the server log).

like image 10
medik Avatar answered Nov 20 '22 07:11

medik