|  | @@ -257,11 +257,19 @@ function install_pleroma_front_end {
 | 
	
		
			
			| 257 | 257 |      git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT
 | 
	
		
			
			| 258 | 258 |      set_completion_param "${app_name} pleroma commit" "$PLEROMA_COMMIT"
 | 
	
		
			
			| 259 | 259 |  
 | 
	
		
			
			|  | 260 | +    if [ -d $INSTALL_DIR/pleroma/node_modules ]; then
 | 
	
		
			
			|  | 261 | +        rm -rf $INSTALL_DIR/pleroma/node_modules
 | 
	
		
			
			|  | 262 | +    fi
 | 
	
		
			
			|  | 263 | +
 | 
	
		
			
			| 260 | 264 |      npm install -g yarn
 | 
	
		
			
			| 261 | 265 |      npm install -g eslint@3.19.0
 | 
	
		
			
			| 262 | 266 |      npm install -g eslint-plugin-promise@3.5.0
 | 
	
		
			
			| 263 | 267 |      npm install -g moment@2.18.1
 | 
	
		
			
			|  | 268 | +    npm install -g node-sass@4.5.2
 | 
	
		
			
			| 264 | 269 |      yarn
 | 
	
		
			
			|  | 270 | +    if [ -f $INSTALL_DIR/pleroma/dist/index.html ]; then
 | 
	
		
			
			|  | 271 | +        rm -rf $INSTALL_DIR/pleroma/dist/*
 | 
	
		
			
			|  | 272 | +    fi
 | 
	
		
			
			| 265 | 273 |      npm run build
 | 
	
		
			
			| 266 | 274 |      if [ ! -d $INSTALL_DIR/pleroma/dist ]; then
 | 
	
		
			
			| 267 | 275 |          echo 'Unable to build pleroma'
 |