According to what was discussed here PackageCompiler package might be borked.
Remove the PackageCompiler from .julia/packages and then try adding PackageCompiler again.
To avoid this problem is recommended to use environments.
I was facing a similar problem and I removed completely .julia directory. Installing again the desired package worked