diff --git a/lib/modules/plugin_cmd/index.js b/lib/modules/plugin_cmd/index.js index 2a1db0be..fdbc6478 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) {