resolveLatest = (versionInfos) => {
  const keys = Object.keys(versionInfos);
  keys.sort((a, b) => semver.rcompare(a, b));
  return keys[0];
}
change latest to the actual version
@param versionInfos - version infos from the npm registry