You should replace
LOGIN
with the unix username and groupname of the account which should be the new owner of specified path.
If username is username, the command is then
sudo chown -R username:username /usr/local/lib/node_modules/cordova
Regarding your
chmod
command, the error message tells you that the path
/Users/username/.cordova/lib/tmp
does not exist.
Try
sudo chmod 777 /home/username/.cordova/lib/tmp
Linux chmod command help and examples[
^]
Linux chown command help and examples[
^]