It happens when your git bash have modules like "npm", "yarn" locally NOT globally but your zsh terminal said module not found
. This is how to fix it:
Ubuntu
Open
.bashrc
in HomeOpen
.zshrc
in HomeCopy last 3 lines of the
.bashrc
and paste to the last line of.zshrc
file. Mine is like:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Save
Top comments (0)