title: Git Hooks error when using NVM in WebStorm and SourceTree
body: <p>I'm using <code>nvm</code> with the <code>--no-use</code> flag as that was causing my terminal to start massively slow . That means than I always need to run <code>nvm use &lt;NODE_VERSION&gt;</code> on new terminal tabs in order to be able to use <code>node</code> or <code>npm</code>.</p>
  
  <p>I have a project with some Git Hooks configured using <code>ghooks</code>, so each time I move to a different branch or commit something, I get different type of errors in both WebStorm and SourceTree, all pointing oout that <code>node</code> could not be found. These are some of them:</p>
  
  <p><em>SourceTree <code>checkout</code></em>:</p>
  
  <pre><code>git -c diff.mnemonicprefix=false -c core.quotepath=false -c 
  credential.helper=sourcetree checkout BRANCH
  Switched to branch 'BRANCH'
  M   ...
  M   ...
  ...
  env: node: No such file or directory
  Completed with errors, see above
  </code></pre>
  
  <p><em>WebStorm <code>commit</code></em>:</p>
  
  <pre><code>Commit failed with error
  0 files committed, 3 files failed to commit: COMMIT_MESSAGE env: node: No such file or directory
  </code></pre>
  
  <p>In WebStorm, I thought that manually setting the <code>node</code> version to use (under <code>Preferences &gt; Languages &amp; Frameworks &gt; Node.js and NPM &gt; Node interpreter</code>) would fix the issue, but it didn't.</p>
  
  <p>I'm using WebStorm <code>2016.1.3, Build #WS-145.1616</code>.</p>
  
  <p>Removing the <code>--no-use</code> flag would fix it of course, but that's not an option as then the terminal becomes super slow at startup. Any other way to get around that? </p>