Now instead of doing npm install -g gulp
or similar and then having mismatches between your global gulp version and your package's locally installed gulp you can just run your usual npm install
and can still do gulp
as usual.
zgen load nikvdp-node-modules-plugin
antigen bundle nikvdp/node-modules-plugin
This is a small hook that adds your node_modules/.bin
directory to your shell's PATH variable whenever you're in a directory that has a node_modules
folder or a packages.json
file.
This is just a lightly edited combination of add-zsh-hook and npm_chpwd_hook