Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

How to solve dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

brew uninstall --ignore-dependencies node icu4c
brew install node
@trainoasis

This comment has been minimized.

Copy link

trainoasis commented May 18, 2018

Heya. This doesn't solve my issue by itself unfortunately :) While reinstalling node this pops up:

==> Pouring node-10.1.0.high_sierra.bottle.tar.gz Error: The "brew link" step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/node
Target /usr/local/bin/node
is a symlink belonging to node. You can unlink it:
brew unlink node

To force the link and overwrite all conflicting files:
brew link --overwrite node

Gotta run brew link --overwrite node to make it work.

@dyslexicdev

This comment has been minimized.

Copy link

dyslexicdev commented Jul 13, 2018

this worked for me, thanks :)

@csierra15

This comment has been minimized.

Copy link

csierra15 commented Jul 16, 2018

Also worked for me! Thank you! :)

@williamnvk

This comment has been minimized.

Copy link

williamnvk commented Jul 16, 2018

Thank you, this worked for me.

@annasedlar

This comment has been minimized.

Copy link

annasedlar commented Jul 20, 2018

Thank you, also works for me!

@romellem

This comment has been minimized.

Copy link

romellem commented Jul 26, 2018

Thanks, this worked. In my case, I use a versioned node, node@8, so I had to just run

brew uninstall --ignore-dependencies node@8 icu4c
brew install node@8
@Royaljerry

This comment has been minimized.

Copy link

Royaljerry commented Aug 10, 2018

node@8 solution worked 4 me, thx

@cuonghuynh

This comment has been minimized.

Copy link

cuonghuynh commented Aug 28, 2018

it worked for me, thank you.

@itsterry

This comment has been minimized.

Copy link

itsterry commented Aug 31, 2018

Worked for me too: thank you!

@PengYilong

This comment has been minimized.

Copy link

PengYilong commented Sep 10, 2018

thanks

@PengYilong

This comment has been minimized.

Copy link

PengYilong commented Sep 10, 2018

I reinstall php with brew reinstall php@7.1 to solve this problem.

@arctouch-fabriciomiranda

This comment has been minimized.

Copy link

arctouch-fabriciomiranda commented Sep 19, 2018

Thanks! brew link --overwrite node solved!

@MilosJo

This comment has been minimized.

Copy link

MilosJo commented Sep 20, 2018

Thanks, solved my issue!

@JulienCorb

This comment has been minimized.

Copy link

JulienCorb commented Sep 23, 2018

I had multiple versions of icu4c, so I had to run brew uninstall --force icu4c before reinstalling node. Then it worked perfectly for me.

@yakzmoz2014

This comment has been minimized.

Copy link

yakzmoz2014 commented Sep 25, 2018

It works for me, thanks.

@Silverium

This comment has been minimized.

Copy link

Silverium commented Oct 17, 2018

+1

@RudolfHladik

This comment has been minimized.

Copy link

RudolfHladik commented Nov 29, 2018

node@8 worked for me too, thanks.

@yahilmadakiya

This comment has been minimized.

Copy link

yahilmadakiya commented Nov 30, 2018

It works for me, thanks.

@obax

This comment has been minimized.

Copy link

obax commented Dec 2, 2018

Nice one

@joncasdam

This comment has been minimized.

Copy link

joncasdam commented Dec 4, 2018

Confirming that still works. Thanks.

@rbucks

This comment has been minimized.

Copy link

rbucks commented Dec 5, 2018

This was such a weird error. Thank you internet.

@jeporcher

This comment has been minimized.

Copy link

jeporcher commented Dec 10, 2018

Thanks a lot for this!

@dariogomez

This comment has been minimized.

Copy link

dariogomez commented Dec 10, 2018

thanks for this!

@BahodurSaidov

This comment has been minimized.

Copy link

BahodurSaidov commented Dec 12, 2018

brew reinstall php@7.1

thanks for mentioning that ! i had laravel valet with php@7.1 and did brew reinstall php which didn't solve the issue...

@mattSpell

This comment has been minimized.

Copy link

mattSpell commented Dec 12, 2018

+1 👍

@snez

This comment has been minimized.

Copy link

snez commented Dec 17, 2018

I had an old manually linked version of php 5.6 under /usr/local/bin/php, so php broke when I upgraded to 7.2. Deleting the old symlink allowed the newer PHP version to kick in.

@MikeyBeLike

This comment has been minimized.

Copy link

MikeyBeLike commented Dec 22, 2018

Thanks!

@khendraw

This comment has been minimized.

Copy link

khendraw commented Dec 26, 2018

Thank you. This confirmed works.

@carlosvazquez

This comment has been minimized.

Copy link

carlosvazquez commented Dec 28, 2018

brew reinstall php@7.1
or
brew reinstall php@7.2

I think the problem is with php.

@MaffooBristol

This comment has been minimized.

Copy link

MaffooBristol commented Jan 7, 2019

I concur that my issue was with php, with both php and composer commands failing with this issue. Anyone have any idea what could've changed? I don't recall really doing anything to break it recently; it appears to have done it of its own accord.

Either way, brew reinstall php@7.2 worked for me

@CAWeissen

This comment has been minimized.

Copy link

CAWeissen commented Jan 8, 2019

brew reinstall php@7.2 worked for me as well!

@antranapp

This comment has been minimized.

Copy link

antranapp commented Jan 9, 2019

brew reinstall php@7.2 worked for me as well!

@tanthammar

This comment has been minimized.

Copy link

tanthammar commented Jan 10, 2019

I got this problem when I installed php 7.3
The solution solved my issue.

@natenolting

This comment has been minimized.

Copy link

natenolting commented Jan 11, 2019

Worked for me too!

@shozayen

This comment has been minimized.

Copy link

shozayen commented Jan 13, 2019

Thanks, worked for me

@rakesh-verma-16

This comment has been minimized.

Copy link

rakesh-verma-16 commented Jan 15, 2019

Worked for me too. Much thanks <3

@raymondtay

This comment has been minimized.

Copy link

raymondtay commented Jan 17, 2019

good tip, thanks for the contribution ! 👌

@maxlipsky

This comment has been minimized.

Copy link

maxlipsky commented Jan 18, 2019

Thanks!

@abelorian

This comment has been minimized.

Copy link

abelorian commented Jan 18, 2019

also works ->

brew upgrade node
Upgrading 1 outdated package:
node 10.9.0 -> 11.6.0

@DuncanYe

This comment has been minimized.

Copy link

DuncanYe commented Jan 20, 2019

Work for me too. Thanks!

@nitinnain

This comment has been minimized.

Copy link

nitinnain commented Jan 22, 2019

I had this same error with Postgresql. brew install postgresql fixed it.
Be cautious if you have important data in Postgres though... Most major DB versions can't read data files from last version.
(I had other issues after this too... but they were psql related and easier to debug)

@CarringtonCreative

This comment has been minimized.

Copy link

CarringtonCreative commented Jan 23, 2019

@abelorian thanks. That did the trick!

@zolomatok

This comment has been minimized.

Copy link

zolomatok commented Jan 28, 2019

This worked, thank you! (though, I tried it without "icu4c" at the end)

@klobinoid

This comment has been minimized.

Copy link

klobinoid commented Jan 29, 2019

Fixed my problem, thx !

@fboutin-pmc

This comment has been minimized.

Copy link

fboutin-pmc commented Jan 30, 2019

Does anybody actually know WHY this could happen ? Because only re-installing or re-linking will not solve the root cause, if a root cause exists.

@Ghostfly

This comment has been minimized.

Copy link

Ghostfly commented Jan 31, 2019

I think this could happen by installing php after node, don't know why or how, but it's the only thing that changed on my computer since this appear.

@indicolite

This comment has been minimized.

Copy link

indicolite commented Feb 1, 2019

Thanks, worked for me ;=)

@mhjadav

This comment has been minimized.

Copy link

mhjadav commented Feb 3, 2019

Thanks :)

@bpolaszek

This comment has been minimized.

Copy link

bpolaszek commented Feb 5, 2019

Doesn't work for me, neither for node, yarn or php

$ brew uninstall node icu4c node@8 php@7.2 yarn --ignore-dependencies --force
$ brew install node
==> Installing dependencies for node: icu4c
==> Installing node dependency: icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-62.1.mojave.bottle.tar.gz
Already downloaded: /Users/bpolaszek/Library/Caches/Homebrew/downloads/2ac513734226effaf79e199fb1612ebce7842df443578bcd61afd73767858aef--icu4c-62.1.mojave.bottle.tar.gz
==> Pouring icu4c-62.1.mojave.bottle.tar.gz
==> Caveats
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

==> Summary
  /usr/local/Cellar/icu4c/62.1: 250 files, 67.3MB
==> Installing node
==> Downloading https://homebrew.bintray.com/bottles/node-11.9.0.mojave.bottle.tar.gz
Already downloaded: /Users/bpolaszek/Library/Caches/Homebrew/downloads/2e30c8593bd3e956d06849da8ac7cee30325be1e04a02e4f4c7d4946fa67a696--node-11.9.0.mojave.bottle.tar.gz
==> Pouring node-11.9.0.mojave.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
  /usr/local/Cellar/node/11.9.0: 4,064 files, 48.6MB
==> Caveats
==> icu4c
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

==> node
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d



$ node -v
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
Abort trap: 6

* BANG *

@bzemms

This comment has been minimized.

Copy link

bzemms commented Feb 12, 2019

Thanks !!

@psq

This comment has been minimized.

Copy link

psq commented Feb 13, 2019

looks like everyone has been having a slightly different issue.

What worked for me, which is a variation (simpler?) from what @bpolaszek posted:

brew uninstall node icu4c node --ignore-dependencies --force
brew install node
@juliantellez

This comment has been minimized.

Copy link

juliantellez commented Feb 14, 2019

brew reinstall node should fix the issue

@MohamedHajr

This comment has been minimized.

Copy link

MohamedHajr commented Feb 15, 2019

For those who got this issue after brew upgrade node its just a linking issue for the new binary use
brew link --overwrite node did the trick for me

@seewhoiam

This comment has been minimized.

Copy link

seewhoiam commented Feb 18, 2019

brew reinstall php@7.1 worked for me ,thanks

@shahbazahmed1269

This comment has been minimized.

Copy link

shahbazahmed1269 commented Feb 19, 2019

Awesome, thanks!

@paulovalente

This comment has been minimized.

Copy link

paulovalente commented Feb 21, 2019

brew reinstall php@7.2 worked for me as well!!! ty !

@manbradcalf

This comment has been minimized.

Copy link

manbradcalf commented Feb 27, 2019

As someone running into this issue trying to build an ionic ios app, this worked for me, thank you!

Here is my particular error:

PhaseScriptExecution Copy\ www\ directory /Users/manbradcalf/Library/Developer/Xcode/DerivedData/UZURV360-cwelbgxprvohdbfwtoayfmbmpggb/Build/Intermediates.noindex/UZURV360.build/Debug-iphonesimulator/UZURV360.build/Script-304B58A110DAC018002A0835.sh (in target: UZURV360)
    cd /Users/manbradcalf/Repos/UZURV360/platforms/ios
    /bin/sh -c /Users/manbradcalf/Library/Developer/Xcode/DerivedData/UZURV360-cwelbgxprvohdbfwtoayfmbmpggb/Build/Intermediates.noindex/UZURV360.build/Debug-iphonesimulator/UZURV360.build/Script-304B58A110DAC018002A0835.sh

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found

I did have the icu4c library but the xcode build script was looking for the wrong version.

@forresthopkinsa

This comment has been minimized.

Copy link

forresthopkinsa commented Mar 4, 2019

A much simpler solution will probably work for 2019 users

As mentioned in this SO answer, you very likely only need to switch your icu4c from version 63 to version 62:

brew switch icu4c 62.1

A bit less extreme method.

@kowalski-piotr

This comment has been minimized.

Copy link

kowalski-piotr commented Mar 7, 2019

works great! thanks!

@iacutone

This comment has been minimized.

Copy link

iacutone commented Apr 1, 2019

Thanks @trainoasis, brew link --overwrite node worked for me.

@andela-cdike

This comment has been minimized.

Copy link

andela-cdike commented Apr 4, 2019

Thanks. That worked for me.

@ashwinneo

This comment has been minimized.

Copy link

ashwinneo commented Apr 8, 2019

Worked for me too. thanks :)

@telmott

This comment has been minimized.

Copy link

telmott commented Apr 11, 2019

👍

@nachbarshund

This comment has been minimized.

Copy link

nachbarshund commented May 16, 2019

Thanks @trainoasis, brew link --overwrite node worked for me as well 🚀

@rriixx

This comment has been minimized.

Copy link

rriixx commented May 23, 2019

brew reinstall php@7.2 worked for me as well. Thx!

@mincong-h

This comment has been minimized.

Copy link

mincong-h commented Jun 26, 2019

👍, thanks

@alexbrohman

This comment has been minimized.

Copy link

alexbrohman commented Jun 27, 2019

@forresthopkinsa Thanks this worked for me!

@bernardoseven

This comment has been minimized.

Copy link

bernardoseven commented Jul 1, 2019

Heya. This doesn't solve my issue by itself unfortunately :) While reinstalling node this pops up:

==> Pouring node-10.1.0.high_sierra.bottle.tar.gz Error: The "brew link" step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/node
Target /usr/local/bin/node
is a symlink belonging to node. You can unlink it:
brew unlink node

To force the link and overwrite all conflicting files:
brew link --overwrite node

Gotta run brew link --overwrite node to make it work.

THANKS a LOT!!! Works perfectly!!

@forresthopkinsa

This comment has been minimized.

Copy link

forresthopkinsa commented Jul 3, 2019

@alexbrohman glad I could help!

@tiagomatosweb

This comment has been minimized.

Copy link

tiagomatosweb commented Jul 11, 2019

Worked for me too. Tks

@iamcrazycoder

This comment has been minimized.

Copy link

iamcrazycoder commented Jul 20, 2019

Thank you. :)

@Flexicon

This comment has been minimized.

Copy link

Flexicon commented Jul 21, 2019

A much simpler solution will probably work for 2019 users

As mentioned in this SO answer, you very likely only need to switch your icu4c from version 63 to version 62:

brew switch icu4c 62.1

A bit less extreme method.

Much better and simpler solution. Especially for people that installed Node through NVM and do not want it installed through brew at all.

@forresthopkinsa

This comment has been minimized.

Copy link

forresthopkinsa commented Aug 8, 2019

<3

@rm-rf-etc

This comment has been minimized.

Copy link

rm-rf-etc commented Sep 20, 2019

Has anyone fixed this without brew link --overwrite node? This seems like a bad idea for anyone who is managing their node version with nvm, like myself.

@forresthopkinsa brew switch icu4c 62.1 gave me an error that 62.1 is not installed. I attempted brew install icu4c@62.1 but this didn't work and it seems that installing a specific version in brew may be non-trivial.

@forresthopkinsa

This comment has been minimized.

Copy link

forresthopkinsa commented Sep 24, 2019

@rm-rf-etc Try the following:

brew unlink icu4c
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/575eb4bbef683551e19f329f60456b13a558132f/Formula/icu4c.rb

You're right it's non-trivial, I had to do a lot of digging to get those commands. Let me know if they work for you.

@tkore

This comment has been minimized.

Copy link

tkore commented Oct 6, 2019

@berkedel you're my hero for today. Thank you :)

@Evan2804

This comment has been minimized.

Copy link

Evan2804 commented Oct 28, 2019

Thank you

@chiragpatel2595

This comment has been minimized.

Copy link

chiragpatel2595 commented Dec 18, 2019

Thank you. It worked.

@lvsj

This comment has been minimized.

Copy link

lvsj commented Dec 24, 2019

Thank you, this woked for me .

@heyprotoman

This comment has been minimized.

Copy link

heyprotoman commented Dec 31, 2019

Thanks - this saved me a lot of time!

@marcandre

This comment has been minimized.

Copy link

marcandre commented Jan 16, 2020

👍

@Makskokhtenko

This comment has been minimized.

Copy link

Makskokhtenko commented Jan 18, 2020

"brew upgrade node" works, thanks

@em77

This comment has been minimized.

Copy link

em77 commented Jan 19, 2020

I tried everything here and this is the only approach that worked for me:
https://stackoverflow.com/a/55828190

The original stackoverflow question there matched my situation exactly. If you're having a slightly different version of icu4c requested by your errors (not 63), then you should modify the instructions to match your situation. So, for example, if you're seeing errors trying to find version 62, then in the git log step you need to find the commit hash corresponding to version 62 and use that in place of the commit hash in the next step in the answer.

@humphriest

This comment has been minimized.

Copy link

humphriest commented Jan 30, 2020

After trying all of the above with no luck, this worked for me:
brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7/Formula/icu4c.rb
Hope it helps

@jetobe95

This comment has been minimized.

Copy link

jetobe95 commented Feb 14, 2020

Gracias me funcionó

@Xeboc

This comment has been minimized.

Copy link

Xeboc commented Feb 16, 2020

I was able to find a way to have icu4c version 60.2 on macOS Catalina, version 10.15.3.

To get the version 60.2 of icu4c, run these commands:

brew install node
brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/fb928fcb69debc71e9fbaf2ada5919f180f9667c/Formula/icu4c.rb
brew switch icu4c 60.2

This brings in node version 13.8.0 and icu4c version 64.2 on Catalina. icu4c 60.2 is no longer available from just running brew install icu4c@60.2 so it has to be reinstalled from the specific commit that had the information available to install it.

This commit is where version 60.2 was added to homebrew-core:

Homebrew/homebrew-core@86ff03f

But they didn't do the checksums until this commit, which is used above:

Homebrew/homebrew-core@fb928fc

Any commit up until they pulled that install code can be used for version 60.2. The other option is to bring in an older version of node (8, I think) from around the High Sierra days, which depends on icu4c 60.2. Node@10 is the oldest available in Catalina, but that still depends on icu4c 64.3, so digging through commits is needed for older versions of Node.

Node 13 itself won't run until you switch its dependency back to the current version of icu4c:

brew reinstall icu4c

@humphriest's comment above will bring in icu4c version 63.1 and @forresthopkinsa's comment will bring in version 62.1

As as additional suggestion to @em77's very astute reference: an easy way to find the commits for various versions of icu4c is to search homebrew-core's Github:

https://github.com/Homebrew/homebrew-core/search?q=icu4c+60.2&type=Commits

@rmarinleal

This comment has been minimized.

Copy link

rmarinleal commented Feb 20, 2020

Thanks!! work form me too

@francomuoio

This comment has been minimized.

Copy link

francomuoio commented Feb 28, 2020

Thanks! work for me

@pacocontrerasdct

This comment has been minimized.

Copy link

pacocontrerasdct commented Mar 3, 2020

Thanks @em77! Your information helped me to solve this problem.

@sid04naik

This comment has been minimized.

Copy link

sid04naik commented Apr 23, 2020

Thank you. Works for me.

@dalmau

This comment has been minimized.

Copy link

dalmau commented Apr 26, 2020

brew upgrade node

@peter-vu

This comment has been minimized.

Copy link

peter-vu commented Apr 27, 2020

Thanks, it saves me a lot of time.

@lanre-mark

This comment has been minimized.

Copy link

lanre-mark commented Apr 28, 2020

Thanks @dalmau brew upgrade node worked for me on Mac OS Catalina.

@mbdrian

This comment has been minimized.

Copy link

mbdrian commented Apr 30, 2020

Thank you it work like a charm!

@bllli

This comment has been minimized.

Copy link

bllli commented Apr 30, 2020

brew switch icu4c 64.2

work for me!

@BarryMode

This comment has been minimized.

Copy link

BarryMode commented Apr 30, 2020

Many thanks @berkedel

@sinamiandashti

This comment has been minimized.

Copy link

sinamiandashti commented May 4, 2020

brew reinstall php@7.1
or
brew reinstall php@7.2

I think the problem is with php.

works for me

@sinamiandashti

This comment has been minimized.

Copy link

sinamiandashti commented May 4, 2020

just re install php
brew reinstall php

@agenciafera

This comment has been minimized.

Copy link

agenciafera commented May 4, 2020

brew reinstall php@7.3 works for me

@crumb1e

This comment has been minimized.

Copy link

crumb1e commented May 5, 2020

I'm using node@12 - a brew reinstall node@12 fixed this for me.

@jpodwys

This comment has been minimized.

Copy link

jpodwys commented May 6, 2020

brew reinstall php@7.2 did the trick for me. Thanks, everyone!

@taoceanz

This comment has been minimized.

Copy link

taoceanz commented May 8, 2020

Ultimately I switched to NVM as that manages Node and NPM far better and allows for installing down to minor and patch versions like 12.12.0 rather than Brew installing at a major version only.
Lots of the above suggestions didn't work. My issue was an installed version I was unaware of that prevented linking any new versions installed.
Find all node versions, take note of the versions listed but uninstall all of them, then install the version you need.

brew search node
brew uninstall --ignore-dependencies node@12 icu4c --force
brew install node@10
brew link node@10
@boromedevs

This comment has been minimized.

Copy link

boromedevs commented May 11, 2020

brew reinstall php :)

@rezuankassim

This comment has been minimized.

Copy link

rezuankassim commented May 18, 2020

brew reinstall php works for me 🎉

@Miliver

This comment has been minimized.

Copy link

Miliver commented May 18, 2020

Worked for me, thanks

@Razoxane

This comment has been minimized.

Copy link

Razoxane commented May 19, 2020

For anyone still struggling with the error dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib after trying the above,

brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/896d1018c7a4906f2c3fa1386aaf283497db60a2/Formula/icu4c.rb
brew switch icu4c 64.2

worked for me.

@BooStudio

This comment has been minimized.

Copy link

BooStudio commented May 19, 2020

brew switch icu4c 64.2

+1 this works

@FreelandKate

This comment has been minimized.

Copy link

FreelandKate commented May 19, 2020

+1 It Woked for me! Thank you!!!

@Mihoid

This comment has been minimized.

Copy link

Mihoid commented May 19, 2020

🔥🔥🔥

@cadamini

This comment has been minimized.

Copy link

cadamini commented May 20, 2020

Suggested solution from Gist was working! Thanks!

@TommyKolkman

This comment has been minimized.

Copy link

TommyKolkman commented May 22, 2020

@Razoxane, your solution fixed it for me in Valet Plus (if anyone ever comes here because of that)

@netojose

This comment has been minimized.

Copy link

netojose commented May 27, 2020

also works ->

brew upgrade node
Upgrading 1 outdated package:
node 10.9.0 -> 11.6.0

Thanks!

@tom10271

This comment has been minimized.

Copy link

tom10271 commented May 28, 2020

For anyone still struggling with the error dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib after trying the above,

brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/896d1018c7a4906f2c3fa1386aaf283497db60a2/Formula/icu4c.rb
brew switch icu4c 64.2

worked for me.

Thank you and fuck you homebrew for fucking everything up every single year.

@htthecool

This comment has been minimized.

Copy link

htthecool commented Jun 2, 2020

Works for me too, thanks :)

@sebfie

This comment has been minimized.

Copy link

sebfie commented Jun 3, 2020

@tom10271 Thank you !

@jamesmusgrave

This comment has been minimized.

Copy link

jamesmusgrave commented Jun 7, 2020

For anyone still struggling with the error dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib after trying the above,

brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/896d1018c7a4906f2c3fa1386aaf283497db60a2/Formula/icu4c.rb
brew switch icu4c 64.2

worked for me also

@nemwiper

This comment has been minimized.

Copy link

nemwiper commented Jun 8, 2020

For anyone still struggling with the error dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib after trying the above,

brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/896d1018c7a4906f2c3fa1386aaf283497db60a2/Formula/icu4c.rb
brew switch icu4c 64.2

worked for me.

Thanks!

@tom10271

This comment has been minimized.

Copy link

tom10271 commented Jun 11, 2020

In case you need to install 66.1

cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
git checkout -b icu4c 22fb699a417093cd1440857134c530f1e3794f7d
brew reinstall ./icu4c.rb
@Sv443

This comment has been minimized.

Copy link

Sv443 commented Jun 12, 2020

I'm gonna be the 500th to say this but yes, this worked, thank you very much!

@Mo33n

This comment has been minimized.

Copy link

Mo33n commented Jun 14, 2020

After 1million year,
This post will remain helpful.

Worked for me too, Cheers :D

@etewiah

This comment has been minimized.

Copy link

etewiah commented Jun 15, 2020

Does everyone here actually understand what this does:

brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/896d1018c7a4906f2c3fa1386aaf283497db60a2/Formula/icu4c.rb

Call me paranoid but I'm a bit uncomfortable with running a script like this which I really don't understand.....

@m6t6ng6

This comment has been minimized.

Copy link

m6t6ng6 commented Jun 19, 2020

This:
(1) brew uninstall --ignore-dependencies node icu4c
(2) brew install node

worked perfectly.

@larismendi-tera

This comment has been minimized.

Copy link

larismendi-tera commented Jun 23, 2020

@m6t6ng6 Thanks!!

@harveydobson

This comment has been minimized.

Copy link

harveydobson commented Jun 24, 2020

The first solution (uninstall + reinstall) worked for me, thanks so much!

So this upgraded my local node version from 12 to the latest version 14.

Was no big deal, just had to update node-sass too. I'm sure this may be the case with other modules depending on what you're doing.

Here was the message, pretty straight forward:

Error: Missing binding /Users/xxx/xxx/xxx/xxx/node_modules/node-sass/vendor/darwin-x64-83/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 14.x

Found bindings for the following environments:
  - OS X 64-bit with Node.js 12.x

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
@gavinworks

This comment has been minimized.

Copy link

gavinworks commented Jun 26, 2020

If you don't know what's breaking your library dependency and you're using brew try this which worked for me:

brew uses --installed icu4c | xargs brew reinstall

@tscherrer05

This comment has been minimized.

Copy link

tscherrer05 commented Jun 28, 2020

This error happened right after I installed Encore into my solution.
Running brew reinstall php@7.4 did the trick for me
Adapt this with your php version if you run into the same problem.

@RyotaBannai

This comment has been minimized.

Copy link

RyotaBannai commented Jul 4, 2020

old postgresql 12.2 tryna seek out /usr/local/opt/icu4c/lib/libicui18n.64.dylib however the mac os has libicui18n.67.dylib so upgrade it to 12.3_4 is a simple solution for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.