check for ganache-cli on PATH and fallback to embark-ganache-cli

This commit is contained in:
Michael Bradley, Jr 2018-07-11 10:32:00 -05:00 committed by Iuri Matias
parent c9b2aa14b6
commit 36b52742bf
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Simulator {
let cmds = [];
const testrpc = shelljs.which('testrpc');
const ganache = shelljs.which('ganache-cli');
const ganache = shelljs.which('ganache-cli') || shelljs.which('embark-ganache-cli');
if (!testrpc && !ganache) {
this.logger.warn(__('%s is not installed on your machine', 'Ganache CLI (TestRPC)'));
this.logger.info(__('You can install it by running: %s', 'npm -g install ganache-cli'));