add install tern's deps