title: zsh: command not found: npm
body: <p>I have just installed Node and Yarn using the following commands:</p>
  
  <pre><code>brew install node
  brew install yarn --without-node
  
  node -v       
  v11.8.0
  
  -a node  
  node is /usr/local/bin/node
  
  yarn -v       
  1.13.0
  type -a yarn
  yarn is /usr/local/bin/yarn
  </code></pre>
  
  <p>However, if I write in terminal <code>npm</code> is says "zsh: command not found: npm"</p>
  
  <p>In my: <code>~/.zshrc</code> I have:</p>
  
  <pre><code>ZSH=$HOME/.oh-my-zsh
  
  # You can change the theme with another one:
  #   https://github.com/robbyrussell/oh-my-zsh/wiki/themes
  ZSH_THEME="robbyrussell"
  
  # Useful plugins for Rails development with Sublime Text
  plugins=(gitfast last-working-dir common-aliases sublime zsh-syntax-highlighting history-substring-search)
  
  # Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
  export HOMEBREW_NO_ANALYTICS=1
  
  # Actually load Oh-My-Zsh
  source "${ZSH}/oh-my-zsh.sh"
  unalias rm # No interactive rm by default (brought by plugins/common-aliases)
  
  # Load rbenv if installed
  export PATH="${HOME}/.rbenv/bin:${PATH}"
  type -a rbenv &gt; /dev/null &amp;&amp; eval "$(rbenv init -)"
  
  # Rails and Ruby uses the local `bin` folder to store binstubs.
  # So instead of running `bin/rails` like the doc says, just run `rails`
  # Same for `./node_modules/.bin` and nodejs
  export PATH="./bin:./node_modules/.bin:${PATH}:/usr/local/sbin"
  
  # Store your own aliases in the ~/.aliases file and load the here.
  [[ -f "$HOME/.aliases" ]] &amp;&amp; source "$HOME/.aliases"
  
  # Encoding stuff for the terminal
  export LANG=en_US.UTF-8
  export LC_ALL=en_US.UTF-8
  </code></pre>
  
  <p>I tried to uninstall and reinstall Node and Yarn using this guide: <a href="https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x">How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)</a></p>
  
  <p>But I still get the same error.</p>