以前,当我将我的第一个应用程序推送到 heroku 时,它没有任何问题 - 我输入了“heroku create”,一切正常。但是现在我收到以下错误消息:
/Users/stuartnelson3/.heroku/client/vendor/gems/netrc-0.7.1/lib/netrc.rb:20:in `readlines': Permission denied - /Users/stuartnelson3/.netrc (Errno::EACCES)
from /Users/stuartnelson3/.heroku/client/vendor/gems/netrc-0.7.1/lib/netrc.rb:20:in `read'
from /Users/stuartnelson3/.heroku/client/lib/heroku/auth.rb:92:in `netrc'
from /Users/stuartnelson3/.heroku/client/lib/heroku/auth.rb:116:in `read_credentials'
from /Users/stuartnelson3/.heroku/client/lib/heroku/auth.rb:59:in `get_credentials'
from /Users/stuartnelson3/.heroku/client/lib/heroku/auth.rb:47:in `user'
from /Users/stuartnelson3/.heroku/client/lib/heroku/auth.rb:14:in `client'
from /Users/stuartnelson3/.heroku/client/lib/heroku/command/base.rb:38:in `heroku'
from /Users/stuartnelson3/.heroku/client/lib/heroku/command/apps.rb:108:in `create'
from /Users/stuartnelson3/.heroku/client/lib/heroku/command.rb:148:in `send'
from /Users/stuartnelson3/.heroku/client/lib/heroku/command.rb:148:in `run'
from /Users/stuartnelson3/.heroku/client/lib/heroku/cli.rb:9:in `start'
from /usr/bin/heroku:28
如果我执行“sudo heroku create”,它会起作用,但是必须一遍又一遍地这样做很痛苦,而且我最初不必这样做。任何人都可以帮我解决发生了什么事吗?我一直在环顾四周,但似乎找不到我的 netrc 问题。我对 git 没有任何问题。