diff --git a/blueprints/ember-electron/index.js b/blueprints/ember-electron/index.js index 05f92d5f..73c0cdee 100644 --- a/blueprints/ember-electron/index.js +++ b/blueprints/ember-electron/index.js @@ -29,6 +29,10 @@ module.exports = { packages.push({name: 'electron-packager'}); } + if (!dependencies['electron-packager']) { + packages.push({name: 'ember-inspector'}); + } + if (packages.length > 0) { return this.addPackagesToProject(packages); } diff --git a/lib/helpers/debug-server.js b/lib/helpers/debug-server.js index ddbb5c48..885deb1a 100644 --- a/lib/helpers/debug-server.js +++ b/lib/helpers/debug-server.js @@ -16,7 +16,9 @@ var inspectorSocket = null; // Server static files for the inspector if (!inspectorPath) { - console.error('Ember Inspector not found!'); + console.log(chalk.bold.red('Ember Inspector not found!')); + console.log(chalk.red('You can fix this issue by running "npm i ember-inspector --save-dev".')); + process.exit(1); } remoteDebugger.use('/', express.static(inspectorPath, {