npm only installs globally when you tell it to, it's not like pip or ruby gems. And you don't need to install project dependencies globally to run scripts from packages, npm puts all that stuff in node_modules/.bin so you can just add that to your $PATH and you're set.