How would i debug something like this?

Try fixing up redirectors in some of your folders, it might not be able to build the package correctly because of something related to that.