Error -36 on terminal for opening atom


I recently got a new macbook pro and i used the migration system of OSX to transfer my applications from my previous macbook to the new one. After i transferred atom, I have been having several problems with it. When I try to use commands in the terminal like, atom nameOfTheFile.Format it gives me the error of:

FSPathMakeRef(/Applications/ failed with error -36.

So i reinstalled atom and then even went to the menu and “Installed Sell Commands” but the problem is still there. All i found on the internet was error -43 and there was absolutely nothing about error -36 on any forums, so any kind of help would be appreciated!