either zsh or bash,terminal.app can find commands in / usr/local/bin , such as npm . But after switching to iterm2, the commands in / usr/local/bin are not recognized, but other commands can be found.
if you want any configuration in my computer, please leave a message and I will try my best to cooperate.
