title: TypeError: Cannot read property 'isTTY' of undefined
body: <pre><code>const accountSid = 'account_sid';
  const authToken = 'auth_token';
  
  const client = require('twilio')(accountSid, authToken);
  
  client.messages
  .create({
      to: '+94716220786',
      from: '+13022519234',
      body: 'Your verification code is ' + Math.floor(1000 + Math.random() * 
  9000)
  })
  .then(message =&gt; console.log(message.sid));
  console.log('receive');
  console.log(Math.floor(1000 + Math.random() * 9000));
  </code></pre>
  
  <p>I'm trying to send sms using twilio. I have installed twilio latest version in my angular project. </p>
  
  <blockquote>
    <p>But when the project runs, it says that "Cannot read property 'isTTY' of undefined"</p>
  </blockquote>