diff --git a/lib/dependency-manager-adapters/bower.js b/lib/dependency-manager-adapters/bower.js index 338a148b..915a6735 100644 --- a/lib/dependency-manager-adapters/bower.js +++ b/lib/dependency-manager-adapters/bower.js @@ -185,7 +185,7 @@ module.exports = CoreObject.extend({ }); }) .then(function(bowerPath) { - return path.join(bowerPath, '..', '..', 'bin', 'bower'); + return '"' + path.join(bowerPath, '..', '..', 'bin', 'bower') + '"'; }); }, _installBower: function() { diff --git a/lib/utils/run-command.js b/lib/utils/run-command.js index c15350cb..291c32b0 100644 --- a/lib/utils/run-command.js +++ b/lib/utils/run-command.js @@ -13,7 +13,7 @@ module.exports = function(root, commandArgs, opts) { if (command === 'ember') { runPromise = findEmberPath(root).then(function(emberPath) { - return run('node', [].concat(emberPath, actualArgs), options); + return run('node', [].concat('"' + emberPath + '"', actualArgs), options); }); } else { runPromise = run(command, actualArgs, options);