How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
It seems like the Node.js binary is trying to load a library (libicui18n.73.dylib) that is not present on your system. This library is part of ICU (International Components for Unicode), which is required by Node.js. Here are a few steps you can try to fix this issue: 1. Check if you have installed the ICU4C library using Homebrew. If not, you can install it by running the following command:
1 | brew install icu4c |
1 | ln -s /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib /opt/homebrew/Cellar/node/21.5.0/bin/ |
1 2 | brew uninstall node brew install node |
Testing if the previous output contains the string brew reinstall node
: False
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
It looks like the Node.js binary is trying to load a library (libicui18n.73.dylib) that is not present on your system. This error can occur if you have recently updated or reinstalled Node.js, or if you have updated or reinstalled the ICU library. Here are a few steps that you can try to fix this issue: 1. Make sure that you have the latest version of the ICU library installed. You can do this by running the following command:
1 | brew install icu4c |
1 | brew link --force icu4c |
1 2 3 4 | brew uninstall node brew uninstall icu4c brew install node brew install icu4c |
1 | brew install icu4c |
1 | brew link --force icu4c |
Testing if the previous output contains the string brew reinstall node
: False
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
It looks like the Node.js binary is trying to load a library (libicui18n.73.dylib) that is not present on your system. This library is part of the ICU4C package, which provides Unicode and globalization support for software applications. Here are some steps you can try to fix this issue: 1. Make sure you have ICU4C installed. You can check if it is installed by running the command `brew list | grep icu4c`. If it is not installed, you can install it by running the command `brew install icu4c`. 2. Check the version of ICU4C that is installed. The error message suggests that the Node.js binary is looking for version 73 of the library, but it is possible that a different version is installed. You can check the version of ICU4C that is installed by running the command `brew list icu4c`. 3. If you have an older version of ICU4C installed, try upgrading to version 73 by running the command `brew upgrade icu4c`. 4. If you have the correct version of ICU4C installed but the Node.js binary is still unable to find the library, you may need to update your system's library path. You can do this by adding the following line to your shell configuration file (e.g. ~/.bashrc or ~/.zshrc): `export DYLD_LIBRARY_PATH=/opt/homebrew/opt/icu4c/lib:$DYLD_LIBRARY_PATH`. This will add the directory containing the ICU4C libraries to the system's library search path. 5. If the above steps do not work, you may need to reinstall Node.js. You can do this by running the command `brew reinstall node`. I hope this helps! Let me know if you have any other questions.
Testing if the previous output contains the string brew reinstall node
: True
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
It seems like the `node` binary is trying to load a library (`libicui18n.73.dylib`) that is not present on your system. Here are some steps you can try to fix the issue: 1. Check if the library is installed: Run the command `brew list icu4c` to see if the ICU4C library is installed on your system. If it's not installed, you can install it by running `brew install icu4c`. 2. Check if the library is in the expected location: The error message suggests that the `node` binary is looking for the library in `/opt/homebrew/opt/icu4c/lib/`. You can check if the library is present in this location by running `ls /opt/homebrew/opt/icu4c/lib/`. If the library is not present in this location, you may need to reinstall ICU4C or create a symbolic link to the correct location. 3. Check if the library is being linked correctly: Make sure that the library path is included in your `DYLD_LIBRARY_PATH` environment variable. You can check the current value of `DYLD_LIBRARY_PATH` by running `echo $DYLD_LIBRARY_PATH`. If the library path is not included, you can add it by running `export DYLD_LIBRARY_PATH="/opt/homebrew/opt/icu4c/lib:$DYLD_LIBRARY_PATH"`. 4. Reinstall Node.js: If none of the above steps work, you may need to reinstall Node.js. You can do this by running `brew uninstall node` followed by `brew install node`. This should install a fresh copy of Node.js and all its dependencies, including ICU4C. I hope this helps! Let me know if you have any further questions.
Testing if the previous output contains the string brew reinstall node
: False
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
How do I fix this nicholas@npc site % http-server dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
It looks like there is a missing library file `libicui18n.73.dylib` that is required by Node.js. This file is part of the ICU (International Components for Unicode) library, which is used by Node.js for handling Unicode strings. Here are a few things you can try to fix this issue: 1. Install or reinstall the ICU4C library using Homebrew. You can try running the following commands in your terminal to install or reinstall the ICU4C library:
1 2 | brew update brew reinstall icu4c |
1 | brew list icu4c | grep lib |
1 | ln -s <path_to_icu4c_library>/lib/libicui18n.73.dylib /opt/homebrew/Cellar/node/21.5.0/bin/ |
1 | brew uninstall node |
1 | brew install node |
Testing if the previous output contains the string brew reinstall node
: False