Atom EACCES permission denied SOLVED

When opening Atom editor for the first time you might receive the following error:

Error: EACCES, permission denied

To solve this execute the following command in the terminal:

sudo chown -R `whoami` ~/.atom