From 3e1db81d5b8c076d268af1e9cb742c7d39f544ec Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 13 Sep 2018 10:29:03 -0400 Subject: [PATCH] preprend embark to plugin name --- lib/modules/plugin_cmd/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/modules/plugin_cmd/index.js b/lib/modules/plugin_cmd/index.js index 2a1db0be4..fdbc64783 100644 --- a/lib/modules/plugin_cmd/index.js +++ b/lib/modules/plugin_cmd/index.js @@ -31,6 +31,9 @@ class PluginCommand { let npmInstall = ['npm', 'install', '--save']; npmInstall = npmInstall.concat(cmdArray.slice(2)); let npmPackage = npmInstall[3]; + if (!npmPackage.startsWith('embark')) { + npmPackage = 'embark-' + npmPackage; + } self.embark.logger.info(__('Installing npm package %s...', npmPackage)); async.waterfall([ function npmInstallAsync(cb) {