|  | @@ -339,6 +339,8 @@ function hackmd_create_config {
 | 
	
		
			
			| 339 | 339 |  }
 | 
	
		
			
			| 340 | 340 |  
 | 
	
		
			
			| 341 | 341 |  function install_hackmd {
 | 
	
		
			
			|  | 342 | +    apt-get -yq install phantomjs
 | 
	
		
			
			|  | 343 | +
 | 
	
		
			
			| 342 | 344 |      install_mariadb
 | 
	
		
			
			| 343 | 345 |  
 | 
	
		
			
			| 344 | 346 |      get_mariadb_password
 | 
	
	
		
			
			|  | @@ -377,6 +379,23 @@ function install_hackmd {
 | 
	
		
			
			| 377 | 379 |      chmod +x bin/setup
 | 
	
		
			
			| 378 | 380 |      ./bin/setup
 | 
	
		
			
			| 379 | 381 |      hackmd_create_config
 | 
	
		
			
			|  | 382 | +    npm install
 | 
	
		
			
			|  | 383 | +    npm install ejs
 | 
	
		
			
			|  | 384 | +    npm install passport
 | 
	
		
			
			|  | 385 | +    npm install method-override
 | 
	
		
			
			|  | 386 | +    npm install cookie-parser
 | 
	
		
			
			|  | 387 | +    npm install compression
 | 
	
		
			
			|  | 388 | +    npm install express-session
 | 
	
		
			
			|  | 389 | +    npm install connect-session-sequelize
 | 
	
		
			
			|  | 390 | +    npm install morgan
 | 
	
		
			
			|  | 391 | +    npm install passport.socketio
 | 
	
		
			
			|  | 392 | +    npm install helmet
 | 
	
		
			
			|  | 393 | +    npm install i18n
 | 
	
		
			
			|  | 394 | +    npm install connect-flash
 | 
	
		
			
			|  | 395 | +    npm install lodash
 | 
	
		
			
			|  | 396 | +    npm install deep-freeze
 | 
	
		
			
			|  | 397 | +    npm install winston
 | 
	
		
			
			|  | 398 | +    npm install markdown-pdf
 | 
	
		
			
			| 380 | 399 |      npm run build
 | 
	
		
			
			| 381 | 400 |  
 | 
	
		
			
			| 382 | 401 |      chmod g+w "/var/www/$HACKMD_DOMAIN_NAME/htdocs"
 |