macOS Error Code 5004: How to Fix It

Medium 30-90 minutes Medium Severity Verified June 2026
Error Code
5004
Brand
macOS
Product Type
operating_system
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
30-90 minutes
macOS error code 5004 occurs when the macOS Install Assistant fails to complete the upgrade or installation process. This typically happens due to a corrupted installer download, insufficient disk space, network interruptions, or software conflicts that prevent the installation from proceeding. While frustrating, this is a medium-severity issue that most users can resolve at home without professional help by following a few targeted troubleshooting steps.
Ad

Tools You'll Need

How to Fix Error Code 5004

  1. Restart Your Mac and Try Again

    Save all open documents before restarting to avoid losing unsaved work.
  2. Check and Free Up Disk Space

    Do not delete system files or folders you are unsure about, as this can cause further instability.
  3. Delete the Corrupted Installer and Re-Download

  4. Disable Security Software and VPNs Temporarily

    Only disable security software temporarily and on a trusted private network. Re-enable it as soon as installation is complete.
  5. Run First Aid on Your Startup Disk

  6. Boot into Safe Mode and Attempt Installation

    Some features and external devices may not work in Safe Mode. This is expected behavior.
  7. Reset NVRAM and SMC (Intel Macs Only)

  8. Create a Bootable macOS USB Installer

    Back up all important data to an external drive or cloud service before performing a clean installation from a USB drive, as this process can erase your disk if you choose the erase option.
Ad

When to Call a Professional

Contact Apple Support or visit an Apple Authorized Service Provider if error 5004 persists after all troubleshooting steps, if Disk Utility reports serious unrepaired disk errors, if your Mac will not boot at all, or if you suspect a failing internal storage drive. A technician can run deeper hardware diagnostics and, if needed, replace internal components. You can also reach Apple Support at support.apple.com or by phone.

Frequently Asked Questions

What causes macOS error code 5004?
Error 5004 is most commonly caused by a corrupted or incomplete macOS installer download, insufficient free disk space, disk errors on the startup drive, conflicts with third-party security software or VPNs, or network interruptions during the download or installation process.
Will I lose my data if I fix macOS error code 5004?
In most cases, no. Standard troubleshooting steps like re-downloading the installer, running First Aid, or disabling security software will not erase your data. However, if you proceed to a clean install using a bootable USB drive and choose to erase your disk, you will lose all data on that disk. Always back up your Mac with Time Machine or another backup method before any major installation attempt.
How do I re-download the macOS installer after deleting it?
Open the Mac App Store and search for the macOS version you want to install, or go to Apple menu > System Preferences > Software Update to find the latest version. Click 'Download' or 'Upgrade Now.' Make sure you have a stable internet connection and sufficient disk space before starting the download.
Can error 5004 happen on Apple Silicon Macs?
Yes, error 5004 can occur on both Intel and Apple Silicon (M1, M2, M3, and later) Macs. The core fixes — such as re-downloading the installer, freeing up disk space, and running Disk Utility First Aid — apply to both architectures. Note that NVRAM and SMC resets are only relevant for Intel-based Macs.
How long does it take to fix macOS error code 5004?
Simple fixes like restarting or freeing up disk space take only a few minutes. Re-downloading the installer can take 10–30 minutes depending on your internet speed. Creating and using a bootable USB installer is the most time-consuming approach at 60–90 minutes or more. Most users resolve the error within one or two of the earlier steps.