WARNING: unable to write config file /home/username/.mbed/.mbed

I just install mbed-cli and everytime I try to define global path for compilers I receive this error:

WARNING: unable to write config file /home/username/.mbed/.mbed what should I do?