2016-08-17 55 views
0

我們正試圖在bluemix上部署角度2應用程序。我們已經定義了一個構建和部署項目的管道,但是我們被困在構建過程中。構建過程是使用角CLI來準備部署一個文件夾(NG建立--prod),但它未能於:使用angular-cli在bluemix上部署角度2應用程序時出錯

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 

這應該與節點的最新版本的工作,但沒有節點以上版本4.2。 2。似乎在構建過程中可用。 任何想法? 謝謝。

回答

0

對於需要節點4.4的一個演示,我們也遇到了這個問題。以下是我們如何設置我們的構建管道。我們在構建期間獲得nvm,然後安裝任何版本的節點:

#!/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 
相關問題