#StackBounty: #macos #npm #terminal #zsh #oh-my-zsh Terminal (zsh) command not found

Bounty: 250

This is driving me nuts! I did a lot of googling and tried various things. (I do not consider this to be a superuser topic)

I’m having a lot of troubles with terminal lately. I must have messed up somewhere, because it used to work just fine and now I can’t get it to recognize my commands anymore neither nvm or global npm packages like expo. It just gives me errors like this:

▶ expo      
zsh: command not found: expo
▶ nvm ls
zsh: command not found: nvm

If I do echo $PATH I get:


(strange behavior is that if I do echo $PATH again it returns two times the same output in one line)

A readable version of it (replacing : with :n


My .zshrc file looks like this:

# Node & NPM

# Git
alias master="git checkout master"
alias dev="git checkout develop"
alias hotfix="git flow hotfix"
alias feature="git flow feature"
alias tags="git push --tags"

# Pip - https://gist.github.com/haircut/14705555d58432a5f01f9188006a04ed

# added by Anaconda2 4.4.0 installer

# Android
export ANDROID_HOME=/Users/norfeldt/Library/Android/sdk

alias emu="pushd ${ANDROID_HOME}/tools;emulator -avd Pixel_2; popd"

# Path to your oh-my-zsh installation.
export ZSH=/Users/norfeldt/.oh-my-zsh


# Autojump
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh

# shell startup.

source $ZSH/oh-my-zsh.sh

# Load zsh-autosuggestions.
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh

# zsh-syntax-highlighting
source /Users/norfeldt/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

export PATH

ANY help would be HIGHLY appreciated!

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.