diff --git a/packages/scripts/src/helpers/scripts.ts b/packages/scripts/src/helpers/scripts.ts index 476b35b5d69..b53c86d5d33 100644 --- a/packages/scripts/src/helpers/scripts.ts +++ b/packages/scripts/src/helpers/scripts.ts @@ -770,12 +770,11 @@ async function showAssets(tsPort: string) { export async function logTCPPorts() { try { + // These netstat flags were chosen because they work in + // both the mac and linux versions of the command const netstat = await execa('netstat', ['-an', '-t', 'tcp'], { shell: true, reject: false }); signale.info('TCP Ports:\n', netstat.stdout); } catch (err) { signale.error('Netstat command failed trying to log ports: ', err); - signale.error('stderr: ', err.stderr); - signale.error('stdout: ', err.stdout); - signale.error('message: ', err.message); } }