Set the composer and npm cache dirs