I am trying to setup a development environment for nativescript on mac os high sierra.
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.
If tns doctor which checks if the environment variables are set - It's all good.
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.
Any ideas?
sudo -iwhich will simulate logging in as root and source the~/root/.profile- Inian