Cannot install plugin peertube-plugin-livechat

I tried to upgrade this plugin to its latest version of 14.0.4, and it encountered an error and removed itself.

[tankie.tube:443] 6/22/2026, 8:26:14 PM.963 e[31merrore[39m: Cannot install plugin peertube-plugin-livechat, removing it... {
  "err": {
    "stack": "Error: ENOENT: no such file or directory, open '/var/www/peertube/storage/plugins/node_modules/clone-response/node_modules/mimic-response/index.js'\n    at Object.readFileSync (node:fs:440:20)\n    at defaultLoadImpl (node:internal/modules/cjs/loader:1122:17)\n    at loadSource (node:internal/modules/cjs/loader:1808:20)\n    at Object..js (node:internal/modules/cjs/loader:1906:44)\n    at Module.load (node:internal/modules/cjs/loader:1505:32)\n    at Function._load (node:internal/modules/cjs/loader:1309:12)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)\n    at Module.require (node:internal/modules/cjs/loader:1527:12)\n    at require (node:internal/modules/helpers:147:16)\n    at Object.<anonymous> (/var/www/peertube/storage/plugins/node_modules/clone-response/src/index.js:4:23)\n    at Module._compile (node:internal/modules/cjs/loader:1781:14)\n    at Object..js (node:internal/modules/cjs/loader:1913:10)\n    at Module.load (node:internal/modules/cjs/loader:1505:32)\n    at Function._load (node:internal/modules/cjs/loader:1309:12)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)\n    at Module.require (node:internal/modules/cjs/loader:1527:12)",
    "errno": -2,
    "code": "ENOENT",
    "syscall": "open",
    "path": "/var/www/peertube/storage/plugins/node_modules/clone-response/node_modules/mimic-response/index.js"
  }
}

Trying to reinstall it didn’t work.

[tankie.tube:443] 6/22/2026, 8:26:16 PM.261 e[31merrore[39m: Client log: Backend returned code 400, errorMessage is: Cannot install plugin peertube-plugin-livechat {
  "username": "tankietanuki",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0",
  "meta": "{\"url\":\"https://tankie.tube/api/v1/plugins/install\"}",
  "url": "https://tankie.tube/admin/settings/plugins/search?pluginType=1"
}

I retried the installation after wiping the ./storage/plugins/ directory, without success.

@JohnLivingston, this is your plugin, right? Am I doing something wrong?

Doing so, you will lose a lot of data for the livechat plugin.

Have you other error messages?

Peertube now uses pnpm instead of yarn to install plugin. I had some troubles too on an installation made from a previous peertube version.
For me, this worked:

  • list installed plugins and themes
  • uninstall all plugins and themes using the web interface
  • delete the storage/plugins/node_modules directory
  • restart peertube
  • re-install all modules/themes

When doing so, i then had an error because of a pnpm security feature: by default, it refuse to install package that have less than 1 day… Peertube seems to try to avoid this by setting some exceptions, but it did not work in my case… Maybe because of a dependency that had less than 1 day, i don’t know. Anyway, to fix, i edited the storage/plugins/pnpm-workspace.yaml file, and added minimumReleaseAge: 0. Then i installed the plugin, and remove the line afterward.

Please enable debug logs on the peertube instance and paste the server logs when the install fails

Okay, I restored my backup of the plugins directory.

Thank you, @JohnLivingston! That worked.