Make sure that the npm prefix is in PATH
authorTravis Swicegood <development@domain51.com>
Thu, 20 Sep 2012 20:36:54 +0000 (15:36 -0500)
committerTravis Swicegood <development@domain51.com>
Thu, 20 Sep 2012 20:36:54 +0000 (15:36 -0500)
plugins/available/node.plugin.bash

index 76027be..06b158e 100644 (file)
@@ -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
+