'[ Error writing HOME/.bash_profile: No such file or directory ]

I cannot Configure the ANDROID_SDK_ROOT to add code react-native CLI on file bash profile on terminal mac, and its the code from React Native Documentation :

export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools

After i save on terminal, the output it's this :

[ Error writing HOME/.bash_profile: No such file or directory ]

Problem : Configure the ANDROID_SDK_ROOT environment variable,



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source