diff --git a/.eslintrc b/.eslintrc index 3ad109eb3..56347a65b 100755 --- a/.eslintrc +++ b/.eslintrc @@ -39,6 +39,7 @@ "@typescript-eslint/no-this-alias": "off", "@typescript-eslint/ban-types": "off", "no-unused-vars": "off", + "no-useless-catch": "off", "@typescript-eslint/no-unused-vars": "off", "no-empty-function": "off", "@typescript-eslint/no-empty-function": "off", diff --git a/packages/core/server/src/plugin-manager/plugin-manager.ts b/packages/core/server/src/plugin-manager/plugin-manager.ts index 02c3a3434..78c97fd83 100644 --- a/packages/core/server/src/plugin-manager/plugin-manager.ts +++ b/packages/core/server/src/plugin-manager/plugin-manager.ts @@ -338,7 +338,10 @@ export class PluginManager { if (!plugin) { throw new Error(`${name} plugin does not exist`); } - await plugin.install(); + if (!plugin.options.installed) { + await plugin.install(); + plugin.options.installed = true; + } await plugin.afterEnable(); }