Let $R$ be a semilocal ring, and $M$ a finite projective $R$module. If the localizations $M_m$ have the same rank for all maximal ideals $m$ of $R$ then $M$ is free.

If R is commutative(even not Noetherian), I think the answer is yes. Please see this paper. 

