pluginfw: explicitly install the latest version of a plugin, fix for #4536 (#4543)

pull/4560/head
webzwo0i 2020-12-05 15:08:02 +01:00 committed by GitHub
parent 0c7df88f8a
commit d25010d5d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ exports.install = async (pluginName, cb = null) => {
cb = wrapTaskCb(cb); cb = wrapTaskCb(cb);
try { try {
await loadNpm(); await loadNpm();
await util.promisify(npm.commands.install)([pluginName]); await util.promisify(npm.commands.install)([`${pluginName}@latest`]);
await hooks.aCallAll('pluginInstall', {pluginName}); await hooks.aCallAll('pluginInstall', {pluginName});
await plugins.update(); await plugins.update();
} catch (err) { } catch (err) {