From 03122b5d719e2c098c05bc3732909be5e1c6c918 Mon Sep 17 00:00:00 2001 From: Ian McNally Date: Tue, 22 Nov 2016 14:24:24 -0500 Subject: [PATCH] Add ignore of stderr when executing process commands - Make sure any potential errors don't leak to the user --- packages/react-dev-utils/getProcessForPort.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/react-dev-utils/getProcessForPort.js b/packages/react-dev-utils/getProcessForPort.js index 6441768a2e9..5540fbad47a 100644 --- a/packages/react-dev-utils/getProcessForPort.js +++ b/packages/react-dev-utils/getProcessForPort.js @@ -2,7 +2,14 @@ var chalk = require('chalk'); var execSync = require('child_process').execSync; var path = require('path'); -var execOptions = { encoding: 'utf8' }; +var execOptions = { + encoding: 'utf8', + stdio: [ + 'pipe', // stdin (default) + 'pipe', // stdout (default) + 'ignore' //stderr + ] +}; function isProcessAReactApp(processCommand) { return /^node .*react-scripts\/scripts\/start\.js\s?$/.test(processCommand);