LoginSignup
0
0

More than 1 year has passed since last update.

dyld[60703]: Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicui18n.70.dylib' でエラー

Posted at

概要

おそらくHomebrewをupdateのが原因で、npm install時に以下のエラー

$ npm install                                                    
dyld[60703]: Library not loaded: '/opt/homebrew/opt/icu4c/lib/libicui18n.70.dylib'
  Referenced from: '/opt/homebrew/Cellar/node/18.7.0/bin/node'
  Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.70.dylib' (no such file), '/usr/local/lib/libicui18n.70.dylib' (no such file), '/usr/lib/libicui18n.70.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/71.1/lib/libicui18n.70.dylib' (no such file), '/usr/local/lib/libicui18n.70.dylib' (no such file), '/usr/lib/libicui18n.70.dylib' (no such file)
zsh: abort      npm install

原因

macOSでは、libicucore.dylib というライブラリが提供されていて、
icu4cをインストールする必要がなくなっている

らしい

解決策

brew reinstall node

参考
https://qiita.com/ohbashunsuke/items/309d5ea4a37eec549933

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0