From ba98f76a10b8fbfe5a1c73e2c45f2257f734cf27 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Sat, 18 Aug 2018 18:15:07 -0500 Subject: [PATCH] no separator if proces.env.NODE_PATH is falsy --- cmd/cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.js b/cmd/cmd.js index 798886fac..68ae7a9fa 100644 --- a/cmd/cmd.js +++ b/cmd/cmd.js @@ -24,7 +24,7 @@ if (!process.env.EMBARK_PATH) { // this makes embark's dependencies trasitive dependencies of a dapp without the // dapp explicitly specifying embark as a dependency in the dapp's package.json process.env.NODE_PATH = utils.joinPath(process.env.EMBARK_PATH, 'node_modules') - + (process.platform === 'win32' ? ';' : ':') + + (process.env.NODE_PATH ? (process.platform === 'win32' ? ';' : ':') : '') + (process.env.NODE_PATH || ''); class Cmd {