Skip to content

Commit

Permalink
hotfix(detox-cli): do not check -g on win32 (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph authored May 24, 2021
1 parent 1cdb507 commit bc0d079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox-cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit bc0d079

Please sign in to comment.