Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 从Heroku开始。授权问题_Node.js_Git_Heroku - Fatal编程技术网

Node.js 从Heroku开始。授权问题

Node.js 从Heroku开始。授权问题,node.js,git,heroku,Node.js,Git,Heroku,我是git/heroku等的noob。我根据教程工作 我在cmd中运行命令: heroku登录 cd节点js入门 heroku创建(在过去运行) heroku认证:令牌 git推送heroku主机 在最后一个命令之后,窗口可能会显示我将用户名“”和密码放置在何处 但之后,将显示: C:\Users\Administrátor\node-js-getting-started>git push heroku master git: 'credential-managerd

我是git/heroku等的noob。我根据教程工作

我在cmd中运行命令:

  • heroku登录
  • cd节点js入门
  • heroku创建(在过去运行)
  • heroku认证:令牌
  • git推送heroku主机
在最后一个命令之后,窗口可能会显示我将用户名“”和密码放置在何处

但之后,将显示:

     C:\Users\Administrátor\node-js-getting-started>git push heroku master
    git: 'credential-managerd' is not a git command. See 'git --help'.

    The most similar command is
        credential-manager
    remote: !       WARNING:
    remote: !       Do not authenticate with username and password using git.
    remote: !       Run `heroku login` to update your credentials, then retry the git command.
    remote: !       See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
    fatal: Authentication failed for 'https://git.heroku.com/afternoon-fjord-61446.git/'
我真的不知道现在该怎么办。

我终于解决了。 我从默认设置更改了我的
.gitconfig
文件

[credential]
helper = managerd


我使用用户名“blank”代替“”(空字符串)及其工作方式。

您是否遵循此操作
不要使用git对用户名和密码进行身份验证。
我使用用户名“”(空)和从“heroku auth:token”获得的密码令牌。我认为问题在于错误“git:“credential managerd”不是git命令。”使用用于登录Heroku dashboardworks的id密码……?我非常确信
managerd
不是此设置的默认值。更可能是打字错误。为什么要将
user.name
设置为
“blank”
?但为什么不使用您的名称
user.name
与身份验证无关。我不知道你说的“user.name”是什么意思。我现在继续阅读Heroku教程。我刚刚编写了nodeJS游戏,现在我想把它上传到某个地方。我在其他方面不在行。
user.name
是设置您的姓名的Git设置(它与
user.email
一起使用)。它可能与您在此处引用的
.gitconfig
文件相同,而且我认为您所说的“用户名”可能是唯一的意思。my.gitconfig只包含我在此处添加的文本。我在窗户上。我所说的用户名是指键入“git push heroku master”后我需要的用户名
[credential]
helper = manager