diff --git a/plugins/market/package.json b/plugins/market/package.json index 74a9c081..edb7753e 100644 --- a/plugins/market/package.json +++ b/plugins/market/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-market", "description": "Manage your bots and plugins with console", - "version": "2.7.1", + "version": "2.7.2", "main": "lib/node/index.js", "types": "lib/index.d.ts", "exports": { diff --git a/plugins/market/src/node/installer.ts b/plugins/market/src/node/installer.ts index ba210493..dda77d71 100644 --- a/plugins/market/src/node/installer.ts +++ b/plugins/market/src/node/installer.ts @@ -197,7 +197,9 @@ class Installer extends Service { private _install() { const args: string[] = [] if (this.agent !== 'yarn') args.push('install') - args.push('--registry', this.endpoint) + if (this.config.endpoint) { + args.push('--registry', this.endpoint) + } return this.exec(this.agent, args) }