parent
0c7df88f8a
commit
d25010d5d7
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue