Add build command for tern

This is needed to install nodejs dependencies for tern server
Merge pull request #1910 from iqbalansari/master

Add build command for tern