From: Travis Swicegood Date: Thu, 20 Sep 2012 20:36:54 +0000 (-0500) Subject: Make sure that the npm prefix is in PATH X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=5c0e1437d466ad4b2de6c4b606811b132139fe12;p=common%2Fbash_it.git Make sure that the npm prefix is in PATH --- diff --git a/plugins/available/node.plugin.bash b/plugins/available/node.plugin.bash index 76027be..06b158e 100644 --- a/plugins/available/node.plugin.bash +++ b/plugins/available/node.plugin.bash @@ -3,4 +3,7 @@ about-plugin 'Node.js helper functions' export PATH=./node_modules/.bin:$PATH +# Make sure the global npm prefix is on the path +[[ `which npm` ]] && export PATH=$(npm config get prefix)/bin:$PATH +