title: Mac OS X no environment variables when using sudo
body: <p>I am trying to setup a development environment for nativescript on mac os high sierra.</p>
  
  <p>I installed all the require tools (which contains android sdk, jdk). And added a path (ANDROID_HOME, JAVA_HOME) for both of them using .bash_profile, .bash_rc.</p>
  
  <p>If tns doctor which checks if the environment variables are set - It's all good.</p>
  
  <p>But when I run sudo tns doctor, it says ANDROID_HOME and JAVA_HOME and no configured. I thought this may be more of a mac problem than a nativescript problem.</p>
  
  <p>Any ideas?</p>