Update MiKTeX
You can use MiKTeX Console to get the latest package updates.
To start MiKTeX Console, search and click the MiKTeX Console in the application launcher (Windows: start menu, macOS: Launchpad).
Click the Updates page. You will see a windows similar to this:

Click the Check for updates button to check for updated packages.
After a while, you will get a windows similar to this:

Ckick Update now to install the packages.