Error Code 22
Spotify Spotify
Severity: ModerateWhat Does This Error Mean?
Spotify Error Code 22 means Spotify's installer or updater failed to complete. You usually see this when trying to install Spotify for the first time or when Spotify is trying to update itself. The most common causes are insufficient disk space, a permissions problem preventing Spotify from writing to the install folder, or an older version of Spotify conflicting with the new one.
Affected Models
- Spotify on Windows
- Spotify on macOS
Common Causes
- Your system drive does not have enough free space for Spotify to install or update
- A previous Spotify installation left behind files that are blocking the new install
- Windows User Account Control (UAC) or folder permissions are preventing Spotify from writing to its install location
- Antivirus software is blocking the Spotify installer from creating files
- The downloaded Spotify installer file is corrupted or incomplete
How to Fix It
-
Check your disk space. Open File Explorer, right-click your C: drive, and check the free space. Spotify needs at least a few hundred MB free. Delete files or empty the Recycle Bin if you are low.
An installer that runs out of disk space partway through leaves behind broken partial files, which cause errors on the next attempt.
-
Uninstall any existing Spotify installation first. Go to Settings > Apps (Windows 11) or Control Panel > Programs (Windows 10) and uninstall Spotify. Then restart your PC before trying to install again.
Installing over an existing broken installation is a common cause of Error 22. A clean removal first prevents conflicts.
-
After uninstalling, delete Spotify's leftover folders manually. Press Win+R, type %appdata%, and delete the Spotify folder. Then press Win+R again, type %localappdata%, and delete the Spotify folder there too.
The Windows uninstaller does not remove these folders. They can contain files from the old installation that block the new one.
-
Download a fresh copy of the Spotify installer directly from spotify.com/download. Do not use a cached or previously downloaded installer file.
A partially downloaded installer file is corrupted and will fail. Downloading a fresh copy ensures you have a complete, valid installer.
-
Run the installer as administrator. Right-click the downloaded Spotify installer file and choose 'Run as administrator'. This gives the installer the permissions it needs to create files in protected locations.
Permission errors are a frequent cause of Error Code 22. Running as admin bypasses the most common permission blocks.
When to Call a Professional
Error Code 22 is a local installation issue that you can fix yourself. No professional help is needed. The clean install steps below resolve the vast majority of cases.
Frequently Asked Questions
Why does Spotify give Error Code 22 when I reinstall but the old version worked fine?
The old version probably left files behind that are conflicting with the new installer. A reinstall without deleting the leftover %appdata%/Spotify and %localappdata%/Spotify folders is not truly a clean install. Delete those folders after uninstalling, then install fresh.
Can I install Spotify somewhere other than the C: drive to avoid disk space issues?
Spotify installs itself in your user profile (AppData folder), not in Program Files, so it always goes to the drive where Windows is installed. To free up space, use Windows' Storage Sense (Settings > System > Storage) to find and delete large files on your C: drive.
My antivirus quarantined part of the Spotify installer. Is Spotify safe to install?
Yes, the official Spotify installer from spotify.com is safe. Antivirus programs sometimes flag legitimate installers as false positives, especially if the installer unpacks files in a way that resembles malware behavior. Restore the quarantined file, add the Spotify installer to your antivirus exclusions, then run it again.