Can I apply for family immigration from a country where I am not a citizen?

To apply from the country you are staying in, you must either be a citizen or have had legal residence there for six months. If not, you cannot apply from this country.