DEV Community

Cover image for Fix bug: Zsh/zimfw terminal cannot find modules
Du Hoang
Du Hoang

Posted on

Fix bug: Zsh/zimfw terminal cannot find modules

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

  1. Open .bashrc in Home

  2. Open .zshrc in Home

  3. Copy 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

  4. Save

Top comments (0)