title: Jenkins using old node version to build project
body: <p>I am working on an existing job that builds a project using node but it looks like it will need to run on v8.11.1 specifically. </p>
  
  <p>here are the following commands we use on Jenkins:</p>
  
  <pre><code>source ~/.profile
  echo 'Install required packages'
  npm install -g bower gulp nodemon
  npm install
  bower install
  
  
  echo 'Building production code'
  gulp build
  </code></pre>
  
  <p>It build our project successfully but only uses version 6.11.2</p>
  
  <pre><code>/home/jenkins/.nvm/versions/node/v6.11.2/bin/bower -&gt; /home/jenkins/.nvm/versions/node/v6.11.2/lib/node_modules/bower/bin/bower
  /home/jenkins/.nvm/versions/node/v6.11.2/bin/gulp -&gt; /home/jenkins/.nvm/versions/node/v6.11.2/lib/node_modules/gulp/bin/gulp.js
  /home/jenkins/.nvm/versions/node/v6.11.2/bin/nodemon -&gt; /home/jenkins/.nvm/versions/node/v6.11.2/lib/node_modules/nodemon/bin/nodemon.js
  </code></pre>
  
  <p>I have tried downloading node v8.11.1 to the /home/jenkins/.nvm/versions/node/, copying gulp, nodemon and bower to the bin directories and using <code>nvm alias default v8.11.1</code> to switch my node versions </p>
  
  <p>Though, when I run the project it always runs on the older version. What could I do to force it to run to the 8.11.1 version?</p>