Can I use a different version of Node in the IBM Bluemix DevOps Services build step npm builder type

0 votes

I am building an ember application and then packaging it into a WAR file for deployment to a liberty runtime.

The ember build process warns me that ember-cli will cease to work with node v0.10.29 and recommends using node 0.12.

Can I use a different version of Node in the: DevOps Services, build step 'npm' builder type?

Jul 3, 2018 in DevOps Tools by Hannah
• 18,520 points
834 views

2 answers to this question.

0 votes

v0.10.29 is the only version of node that exists on the build image. In order to use a different version the user must download it. Here is an example script of how to do that

#!/bin/bash
node_version=v0.12.7
install_name=node-v0.12.7-linux-x64
if [ ! -e $install_name.tar.gz ]; then
wget "http://nodejs.org/dist/$node_version/$install_name.tar.gz"
echo 'Untarring'
tar xf $install_name.tar.gz
fi
NODE_12_INSTALL_DIR=`pwd`/$install_name/bin
PATH=$NODE_12_INSTALL_DIR:$PATH
node -v
answered Jul 3, 2018 by Kalgi
• 52,350 points
0 votes

Hey @Hannah

just specify the needed version in your package.json as an engines property and you should be fine.

answered Oct 23, 2018 by lina
• 8,220 points

Related Questions In DevOps Tools

0 votes
1 answer

Can I use Bluemix devops services with a dedicated Bluemix?

DevOps services isn't currently working in dedicated. READ MORE

answered Jul 11, 2018 in DevOps Tools by Kalgi
• 2,680 points
787 views
0 votes
0 answers

How can I use the Azure DevOps Extension for Azure CLI in Azure DevOps Server environments?

How can I use the Azure DevOps ...READ MORE

2 days ago in DevOps Tools by Anila
• 4,640 points
23 views
0 votes
1 answer

How can I configure Docker to use a specific number of CPU cores for a container?

In your docker run command, set a specific number of CPU cores to use directly by the container. This helps in controlling resources, particularly with shared environments or using multiple ...READ MORE

answered Nov 18 in DevOps Tools by Gagana
• 6,010 points
68 views
0 votes
0 answers

How can I improve the performance of Ansible playbooks in large environments?

How can I improve the performance of ...READ MORE

5 days ago in DevOps Tools by Anila
• 4,640 points
28 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,055 views
+2 votes
1 answer
0 votes
1 answer

how to fix the build with maven in bluemix

As per Bluemix Status Page today DevOps Delivery Pipeline ...READ MORE

answered Jul 6, 2018 in DevOps Tools by Kalgi
• 52,350 points
1,548 views
+1 vote
1 answer

i have a pyhton code in my git/git repository how to build that code in jenkins

Follow these steps @Bhaskar: Step 1: Open the Jenkins ...READ MORE

answered Oct 14, 2019 in DevOps Tools by Kalgi
• 52,350 points
913 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP