commit | 5c0e1437d466ad4b2de6c4b606811b132139fe12 | [log] [tgz] |
---|---|---|
author | Travis Swicegood <development@domain51.com> | 周四 9月 20 15:36:54 2012 -0500 |
committer | Travis Swicegood <development@domain51.com> | 周四 9月 20 15:36:54 2012 -0500 |
tree | 5f78d308c86148337681bae20fabec6893c0fd3c | |
parent | e9f00c9af988a0f731ab5600f90c8ae5e2914259 [diff] |
Make sure that the npm prefix is in PATH
diff --git a/plugins/available/node.plugin.bash b/plugins/available/node.plugin.bash index 76027be..06b158e 100644 --- a/plugins/available/node.plugin.bash +++ b/plugins/available/node.plugin.bash
@@ -3,4 +3,7 @@ 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 +