diff --git a/bin/embark b/bin/embark index 884ba91d..19916959 100755 --- a/bin/embark +++ b/bin/embark @@ -17,17 +17,19 @@ function launchEmbark() { } const path = require('path'); -require('colors'); try { const dappPackage = require(path.join(process.cwd(), 'package.json')); + require(path.join(process.cwd(), 'embark.json')); // Make sure we are in a Dapp require('check-dependencies')(dappPackage, (state) => { if (state.status) { + require('colors'); console.error('\nMissing dependencies. Please run npm install'.red); process.exit(); } launchEmbark(); }); -} catch (e) { +} catch (_e) { + // We are not in a Dapp launchEmbark(); }