From bc0d0797dfb63ef6cebbf2c16a223511bea8b54e Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Mon, 24 May 2021 14:20:03 +0300 Subject: [PATCH] hotfix(detox-cli): do not check -g on win32 (#2794) --- detox-cli/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detox-cli/cli.js b/detox-cli/cli.js index 6db8d5995d..69fb3d53d7 100755 --- a/detox-cli/cli.js +++ b/detox-cli/cli.js @@ -15,7 +15,7 @@ function log(msg) { function main([_$0, _detox, ...cliArgs]) { const [command] = cliArgs; - if (!isInstalledGlobally) { + if (process.platform !== 'win32' && !isInstalledGlobally) { log('Error: "detox-cli" package is not meant to be installed locally, exiting...'); log('HINT: Remove the local installation and reinstall it globally:'); log(' npm uninstall detox-cli');