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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay