queue npm calls so they do not clash with each other