Permalink
Browse files

Make sure that the npm prefix is in PATH

  • Loading branch information...
1 parent e9f00c9 commit 5c0e1437d466ad4b2de6c4b606811b132139fe12 @tswicegood tswicegood committed Sep 20, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 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
+

0 comments on commit 5c0e143

Please sign in to comment.