/ npm

How to get npm tab completion for zsh and bash

The easiest way, for ZSH users :

npm completion >> ~/.zshrc

BASH users :

npm completion >> ~/.bashrc

Oh-My-ZSH users just enable npm plugin ;)