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
• 14,080 points
45 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
• 37,320 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,100 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
29 views
0 votes
1 answer
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,240 points
136 views
+13 votes
2 answers
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
• 37,320 points
57 views
+1 vote
2 answers

Trying to make a PHP code work in bluemix

example to @Nilesh's explanation: $html = '<html> ...READ MORE

answered Oct 25, 2018 in DevOps Tools by akaash
23 views