Wednesday 23 December 2015

A nice little snippet to allow easy access to locally installed packages.

Hi All,I recently discovered an easy way to access locally installed modules via the command line! Just add this to your .bashrc/.zshrc/etc:export PATH=$PATH:./node_modules/.bin It will still prefer globally installed modules, but fall back to local ones. If you'd rather prefer locally installed modules, you can do this:export PATH=./node_modules/.bin:$PATH This makes it a lot easier to debug npm scripts. Enjoy!

Submitted December 23, 2015 at 08:51PM by ariporad

No comments:

Post a Comment