Only successful installs should be cached
Only successful installs should be cached

Make sure not to leave inconsistent data behind.
If the install failed, delete the pacakge dir, and the JSON cache

clibs/clib,clibs/clib,clibs/clib,clibs/clib