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

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 vote
Ian Buchanan Atlassian Team Aug 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.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

436 views 6 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot