For applying patches composer needs the “cweagans/composer-patches” package. Install it with the command: