A woman living in a caravan on a friend's lawn has been forced to move out because she breached city rules by staying there for more than three months in a year.