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
• 17,060 points
58 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
• 45,780 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,160 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,620 points
45 views
0 votes
1 answer
0 votes
1 answer

How to get the current status of a local repository in Git?

Using 'git status' command in the repository ...READ MORE

answered Nov 26 in DevOps Tools by Sirajul
• 40,980 points
8 views
0 votes
1 answer

How to download the latest minor version of nexus artifact using REST?

If you're using nexus 2.x, you can ...READ MORE

answered Jun 27, 2018 in DevOps Tools by ajs3033
• 7,280 points
585 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
242 views
0 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
• 45,780 points
111 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 in DevOps Tools by Kalgi
• 45,780 points
31 views