title: Two versions of icu4c installed by Homebrew
body: <p>Whenever I attempted to run <code>npm --version</code> or <code>node --version</code> on my Mac, I was getting the following error:</p>
  
  <pre><code>$&gt; node --version
  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
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/questions/53828891/dyld-library-not-loaded-usr-local-opt-icu4c-lib-libicui18n-62-dylib-error-run">this helpful SO post</a> which suggested linking the appropriate version, and fixed my issue with:</p>
  
  <pre><code>$&gt; brew switch icu4c 63.1
  Cleaning /usr/local/Cellar/icu4c/64.2
  Cleaning /usr/local/Cellar/icu4c/63.1
  Opt link created for /usr/local/Cellar/icu4c/63.1
  </code></pre>
  
  <p>However after doing this, <strong>PHP</strong> stopped working:</p>
  
  <pre><code>$&gt; tail /usr/local/var/log/php-fpm.log
    Reason: image not found
  dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
    Referenced from: /usr/local/opt/php/sbin/php-fpm
    Reason: image not found
  dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
    Referenced from: /usr/local/opt/php/sbin/php-fpm
    Reason: image not found
  dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
    Referenced from: /usr/local/opt/php/sbin/php-fpm
    Reason: image not found
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/questions/53828891/dyld-library-not-loaded-usr-local-opt-icu4c-lib-libicui18n-62-dylib-error-run">this helpful SO post</a> which suggested linking the appropriate version, and fixed my issue with:</p>
  
  <pre><code>$&gt; brew switch icu4c 64.2
  Cleaning /usr/local/Cellar/icu4c/64.2
  Cleaning /usr/local/Cellar/icu4c/63.1
  Opt link created for /usr/local/Cellar/icu4c/64.2
  </code></pre>
  
  <p>But now NodeJS is broken again! How can I tell Homebrew to create <strong>both</strong> links, one for 63.1 and one for 64.2? Or is there a way to tell NodeJS to use the newer 64.2 instead?</p>