Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you use different Node.js versions on build machine?

amargalis May 9, 2017

We need the ablility to reproduce older builds.  So in the future we will need to build with the older version of Node.js along with the future versions for future builds.  This is all on one build machine. 

1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2017

I run into this all the time, not just on the Bamboo server, but on my local dev machine. I have found Node Version Manager (nvm) to be a huge help for both cases. To install a given version (and keep it around), just do "nvm install 0.10". In a Bamboo build, you would just run a script task for "nvm use 0.10" then you can kick off your build however you would normally.

David Chin April 4, 2019

This is great post and quite simple.  By setting a default version nvm alias default <version>, any other shell that opens will use this.  Then in my build job, I just add a script shell and call nvm use <myVersion> and run the build.  When finished, no harm done.  Everything (other builds) just looks the same.  

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events