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
.bashrcin HomeOpen
.zshrcin HomeCopy last 3 lines of the
.bashrcand paste to the last line of.zshrcfile. 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)