Unable to deploy angular 2 app on bluemix with angular CLI

0 votes

So I'm trying to deploy an angular2 app on IBM Bluemix. The pipeline is built but the I'm stuck in the build phase. I'm trying it using angular-cli to prepare a folder for deployment (ng build --prod), but it wont get any further than this:

The Broccoli Plugin: [BroccoliMergeTrees] failed with:
Error: Merge error: file index.html exists in /home/pipeline/7c14494a-d2b2-417f-be02-1007a2c8cfe7/tmp/broccoli_merge_trees-input_base_path-2MsSutn8.tmp/0 and /home/pipeline/7c14494a-d2b2-417f-be02-1007a2c8cfe7/tmp/broccoli_merge_trees-input_base_path-2MsSutn8.tmp/1

It should've worked with the latest version of node, but none of nodes have a version higher than 4.2.2.

Apr 9, 2018 in DevOps on Cloud by DragonLord999
• 8,450 points
1,200 views

1 answer to this question.

0 votes

We had the same issue and in our case it required version 4.4. Get nvm during the build and the try and install nodes. It worked for us. Here's how we build our pipelione

#!/bin/bash
# nvm is not compatible with this option
npm config delete prefix
# get nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
# load nvm    
. ~/.nvm/nvm.sh
# install Node 4.4
nvm install 4.4

# proceed with our specific code...
npm install

To know more about Angular, It's recommended to join Angular online training today.

answered Apr 9, 2018 by ajs3033
• 7,300 points

Related Questions In DevOps on Cloud

0 votes
1 answer

How to deploy compiled elements Azure Web App with Appveyor?

Add the following BeforeBuild target to Web ...READ MORE

answered Jul 12, 2018 in DevOps on Cloud by Kalgi
• 2,680 points
906 views
+3 votes
2 answers
+2 votes
3 answers

How do I deploy Scala PlayFramework Project to IBM Bluemix

It seems that they are more than ...READ MORE

answered Oct 18, 2018 in DevOps on Cloud by lina
• 8,220 points
1,259 views
0 votes
1 answer
+1 vote
1 answer
+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,058 views
0 votes
1 answer
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