I want to invite my friend to move in with me in the city, but I am not sure if it will work out.
Why you think it won't work out?
I just think she won't be happy in this city
You cannot expect all things to work out in the end. You should ask your friend how they feel about moving in they might be for it.
My other friends are all going to move in the city so it should be fine for her too.
Yeah but you have to consider all possibilities. You should  ask her about it ,no need to be upset if she denies your offer.