install necessary packages before installing node