Add build command for tern

This is needed to install nodejs dependencies for tern server