Getting Espresif ESP 32 into board Manager

When I go to the board manager and find then try to install the esp32,
it installs for awhile then I get an error message.

failed to install platform 4Deadline exceeded client timeout or cancellation while reading body

What should I try next?

Check this post ESP32 package download keeps timing out

Hi @goodlloyd13. Which version of Arduino IDE are you using (e.g., "2.3.8")? The version is shown on the window title bar and also in the dialog that opens when you select Help > About (or Arduino IDE > About Arduino IDE for macOS users) from the Arduino IDE menus.

There is a bug in Arduino IDE 2.3.7 that caused boards platform installations to fail spuriously when the download takes a long time. However, that bug was fixed in Arduino IDE 2.3.8. So if you are using Arduino IDE 2.3.7, the easy fix will be to simply update to the latest version of Arduino IDE.

If you are already using Arduino IDE 2.3.8, and still experiencing this error even with that version, then the error must be caused by some exceptional condition occurring during the download. In this case, you might find that it was an intermittent fault and that you can simply try again now. Otherwise it is possible you could work around the problem by configuring a higher timeout duration, following the instructions found through the link @amitabhkant shared.