Flavio Antelo
Flavio Antelo

Flavio Antelo

FIX Library Not Loaded: libicui18n.67.dylib

FIX Library Not Loaded: libicui18n.67.dylib

yarn_integrity_check error with rails, yarn, and webpacker

Subscribe to my newsletter and never miss my upcoming articles

It's the second time in a row that I face this very same issue.

I'm launching a new Rails application but, at the first command... boom 💥

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
sh: line 1:  9398 Abort trap: 6           yarn check --integrity


========================================
  Your Yarn packages are out of date!
  Please run `yarn install --check-files` to update.
========================================


To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).

As the error suggests, you could disable yarn_integrity_check, right?

You're right, but DON'T.

The integrity check verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules. So keep it like that.

What I advise you is to, first, try to update your packages (if you didn't already):

# update your js packages
yarn install

And if, like for myself, that was not enough, go for the heavylifting:

brew upgrade
brew cleanup

These last two commands can take a long while to run, and you might need to restart your terminal again, but that should solve your issue.


Whether it worked for you or not, leave a comment below and share your findings. They might as well be useful to other developers 🤗

 
Share this