4
votes

I did a brew install node. Now I'm getting the following whenever I try to use commands like php artisan, valet, etc.:

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

I'm running macOS High Sierra Version 10.13.5.

I have tried uninstalling and reinstalling Node. I have tried uninstalling and reinstalling icu4c. I have tried unlinking and relinking. Anyone else encountered this and have a solution?

2
What is the output of brew doctor ?Ortomala Lokni
"Your system is ready to brew."user5487286

2 Answers

3
votes

I removed everything npm and node related (I think), did a brew upgrade php, and now everything seems to be working. I'll continue to troubleshoot and see if I can find out more.

0
votes

I resolve this question.

On the way:

First: 1 brew upgrade php

2 look PHP in your $PAHT ? if not in PATH

echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc

echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc

It works for me!