One of the features for yarn mentioned is better offline support, but you can also do this with vanilla npm:
npm install --cache-min Infinity
I have this aliased to `npmi` on my system and use it all the time.