ruvnet/ruflo · error

[PluginManager] Failed to load manifest, creating new one

Error message

[PluginManager] Failed to load manifest, creating new one

What it means

Log warning in loadManifest: reading or JSON-parsing the installed-plugins manifest at config.manifestPath failed (corrupt or unreadable file); the manager recovers by creating a fresh empty manifest.

Source

Thrown at v3/@claude-flow/cli/src/plugins/manager.ts:119

    // Load or create manifest
    this.manifest = await this.loadManifest();
  }

  private async ensureDirectory(dir: string): Promise<void> {
    if (!fs.existsSync(dir)) {
      fs.mkdirSync(dir, { recursive: true });
    }
  }

  private async loadManifest(): Promise<InstalledPluginsManifest> {
    try {
      if (fs.existsSync(this.config.manifestPath)) {
        const content = fs.readFileSync(this.config.manifestPath, 'utf-8');
        return JSON.parse(content) as InstalledPluginsManifest;
      }
    } catch (error) {
      console.warn('[PluginManager] Failed to load manifest, creating new one');
    }

    return {
      version: '1.0.0',
      lastUpdated: new Date().toISOString(),
      plugins: {},
    };
  }

  private async saveManifest(): Promise<void> {
    if (!this.manifest) return;

    this.manifest.lastUpdated = new Date().toISOString();

    await this.ensureDirectory(path.dirname(this.config.manifestPath));
    fs.writeFileSync(
      this.config.manifestPath,
      JSON.stringify(this.manifest, null, 2),

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Delete or repair the corrupt plugin manifest file so it can be parsed, or let the manager recreate it (already done); re-install plugins afterward since entries may be lost.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at v3/@claude-flow/cli/src/plugins/manager.ts:119 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/58e3ab39d88bfc32. Report an issue: GitHub.