devops-services

Bluemix build pipeline set node and npm version

旧巷老猫 提交于 2019-12-02 01:52:01
I want to deploy an angular 2 app on bluemix. The code is located at github and i want to deploy my app when i push something. So i created a pipeline. First the build pipeline: to build the angular app i need angularCLI, so i want to install it. Unfortunately the default node version is 4.2 but the cli needs at least 6.9. Here is my build-shell-command: #!/bin/bash # The default Node.js version is 0.10.40 # To use Node.js 0.12.7, uncomment the following line: #export PATH=/opt/IBM/node-v0.12/bin:$PATH # To use Node.js 4.2.2, uncomment the following line: export PATH=/opt/IBM/node-v6.9/bin: