diff --git a/src/bin/embark.js b/src/bin/embark.js index bc811e05e..8e206ceb6 100755 --- a/src/bin/embark.js +++ b/src/bin/embark.js @@ -630,9 +630,9 @@ PkgJsonLocalExpected.prototype.logMissingFile = function () { PkgJsonLocalExpected.prototype.setEmbarkDep = function () { if (isObject(this.json)) { - if (this.json.dependencies) { + if (this.json.dependencies && this.json.dependencies.embark) { this.embarkDep = this.json.dependencies.embark; - } else if (this.json.devDependencies) { + } else if (this.json.devDependencies && this.json.devDependencies.embark) { this.embarkDep = this.json.devDependencies.embark; } }