Make sure that the npm prefix is in PATH

pull/155/merge^2
Travis Swicegood 2012-09-20 15:36:54 -05:00 committed by Gregory Nofi
parent a0a9b1e716
commit 018c62c6c5
1 changed files with 3 additions and 0 deletions

View 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