Make sure that the npm prefix is in PATH

This commit is contained in:
Travis Swicegood
2012-09-20 15:36:54 -05:00
parent e9f00c9af9
commit 5c0e1437d4

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