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,360 points
191 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
answered Apr 9, 2018 by ajs3033
• 7,080 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,620 points
21 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,100 points
80 views
0 votes
1 answer
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.