Receiving an error upon heroku login not sure why permission seems to be the issue Receiving an error upon heroku login not sure why permission seems to be the issue heroku heroku

Receiving an error upon heroku login not sure why permission seems to be the issue


When you run heroku login command, it will write your Heroku API key to the .netrc file.

If you first run sudo heroku login, then the .netrc file will be owned by the root account and not your user account. Unless you change permissions on the file using chmod a+x ~/.netrc or change ownership with sudo chown lior ~/.netrc then you wont be able to read or write to the ~/.netrc file.

Deleting the ~/.netrc file and running heroku login is another way to solve the problem.