diff --git a/lib/runner/test-runners/cucumber.js b/lib/runner/test-runners/cucumber.js index cba8013dc6..cda21ef22f 100644 --- a/lib/runner/test-runners/cucumber.js +++ b/lib/runner/test-runners/cucumber.js @@ -31,7 +31,7 @@ class CucumberSuite extends TestSuite { if (err.code === 'MODULE_NOT_FOUND') { const error = new Error('Cucumber needs to be installed as a project dependency.'); error.showTrace = false; - error.detailedErr = 'You can install cucumber from NPM using:\n\n\t' + Logger.colors.light_green('npm i @cucumber/cucumber'); + error.detailedErr = 'You can install cucumber from NPM using:\n\n ' + Logger.colors.light_green('npm i @cucumber/cucumber'); throw error; } diff --git a/lib/runner/test-runners/mocha.js b/lib/runner/test-runners/mocha.js index 0e89b6addd..c67d2b3124 100644 --- a/lib/runner/test-runners/mocha.js +++ b/lib/runner/test-runners/mocha.js @@ -133,7 +133,7 @@ class MochaRunner { require('mochawesome-merge'); } catch (err) { const error = new Error('Nightwatch needs some more packages when running in parallel and using the mochawesome reporter:'); - error.detailedErr = 'To install dependencies, please run:\n\tnpm install mochawesome-report-generator mochawesome-merge --save-dev'; + error.detailedErr = 'To install dependencies, please run:\n npm install mochawesome-report-generator mochawesome-merge --save-dev'; throw error; } diff --git a/lib/transport/selenium-webdriver/service-builders/base-service.js b/lib/transport/selenium-webdriver/service-builders/base-service.js index d6abb53a76..b6297e4d07 100644 --- a/lib/transport/selenium-webdriver/service-builders/base-service.js +++ b/lib/transport/selenium-webdriver/service-builders/base-service.js @@ -33,7 +33,7 @@ class BaseService { let binaryMissing = `${this.serviceName} cannot be found in the current project.`; if (this.npmPackageName) { - binaryMissing += '\n\n ' + Logger.colors.yellow(`You can either install ${this.npmPackageName} from NPM: \n\tnpm install ${this.npmPackageName} --save-dev\n\n`) + ' or '; + binaryMissing += '\n\n ' + Logger.colors.yellow(`You can either install ${this.npmPackageName} from NPM: \n npm install ${this.npmPackageName} --save-dev\n\n`) + ' or '; } else { binaryMissing += '\n\n Please '; }