code: function resolveGlobal(moduleName: string): ?string {
    const modulePath = path.join(getGlobalPath(), moduleName);
    return pathExists(modulePath) ? modulePath : null;
  }
docs: Resolve a globally installed module from it's name.
  
  @param moduleName Module name.
  @returns Module path or null if not found.