_validateVersionSyntax(versions) {
    for (const version of versions) {
      if (!semver.valid(version)) {
        throw version;
      }
    }
  }
This validates that the given versions strictly follow semver
syntax.
@param {Array<String>} versions The versions to check.