Refactor. Try and install all the packages at once.