revert(global-cli): is installed globally (#2925)

This commit is contained in:
Yaroslav Serhieiev
2021-08-01 11:17:55 +03:00
committed by GitHub
parent 6268659f80
commit e413dcd0d8
-10
View File
@@ -3,7 +3,6 @@ const cp = require('child_process');
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const isInstalledGlobally = require('is-installed-globally');
/**
* @param {string} msg
@@ -15,15 +14,6 @@ function log(msg) {
function main([_$0, _detox, ...cliArgs]) {
const [command] = cliArgs;
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');
log(' npm install -g detox-cli\n');
return 1;
}
if (command === 'recorder' && process.platform === 'darwin') {
return spawnRecorder(cliArgs);
} else {