From fa94d3c79ae279e9c8579c50d837b960c1242af9 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 12 Jul 2018 14:54:45 -0500 Subject: [PATCH] dont' need shelljs.which, can directly invoke embark's node_modules/.bin/ganache-cli --- lib/cmds/simulator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cmds/simulator.js b/lib/cmds/simulator.js index 8d26b1dce..9195de970 100644 --- a/lib/cmds/simulator.js +++ b/lib/cmds/simulator.js @@ -1,3 +1,4 @@ +const path = require('path'); let shelljs = require('shelljs'); let proxy = require('../core/proxy'); const Ipc = require('../core/ipc'); @@ -13,7 +14,7 @@ class Simulator { run(options) { let cmds = []; - const ganache = shelljs.which('ganache-cli-embark'); + const ganache = path.join(__dirname, '../../node_modules/.bin/ganache-cli'); // const testrpc = shelljs.which('testrpc'); // const ganache = shelljs.which('ganache-cli'); // if (!testrpc && !ganache) {