Commands in / usr/local/bin are not recognized by iterm2

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.

Mar.28,2021

echo $PATH after that, it is found that there is no / usr/local/bin , so you need to add the following

to ~ / .zshrc
$ vim ~/.zshrc

add / usr/local/bin
to export PATH=xxx , thank you @ learnmeahskell

Menu