Prove that every $\mathbb{Z}$-module finitely generated is free if, and only if, it is locally free.
Any hints?
I have checked this question but I'm not clear on how to proceed with the implication $(\Leftarrow)$ and the whole "basis" thing. Is this one of those instances where we have to consider localizations as extensions of scalars?
There are two useful facts related to your question. For $R$-module $M$,
The first fact is explained in https://stacks.math.columbia.edu/tag/00NV, the second one is in here. Applying these to the case $R=\mathbb{Z}$, we are done.