Make sure that the npm prefix is in PATH

pull/162/head
Travis Swicegood 2012-09-20 15:36:54 -05:00
parent e9f00c9af9
commit 5c0e1437d4
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