Easy steps to install esptool package on Mac
Package Information:
Application Name – esptool
What is esptool – Not Available for esptool
Use of esptool – ESP8266 and ESP32 serial bootloader utility
URL – https://github.com/espressif/esptool
Installation Steps:
- Open Terminal using Spotlight search by pressing
<command+space>. Type terminal and hitEnterkey. - Now, run following command to install homebrew (brew)
- Install esptool using brew
brew install esptool

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

esptool is ready to use now!