Failed to import package with error: Couldn't decompress package

I’m trying to import TMP into my project, but doing so throws the following error in the console:

Failed to import package with error: Couldn’t decompress package
UnityEditor.AssetDatabase:ImportPackage (string,bool)
TMPro.TMP_PackageUtilities:ImportEssentialResources () (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMP_PackageUtilities.cs:1100)
TMPro.TMP_PackageUtilities:ImportProjectResourcesMenu () (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMP_PackageUtilities.cs:1044)

However, installing TMP via the Unity Registry section of the Package Manager does not throw an error, but TMP is still unusable.

Any fixes?

Nevermind, fixed my own issue. For anyone else who encounters this problem:

  1. Remove TMP via the Package Manager. Click on the “TextMeshPro” folder under “Packages” if it still exists and show it in the Explorer (on Windows). Delete the corresponding file.
  2. Install TMP via the Package Manager. Then, go to Window → TextMeshPro → Import Essential Resources.

I guess the issue was a conflicting version of TMP that was already installed? Not sure.