Heroku CLI登录失败,错误为“error:enoint:没有这样的文件或目录,请打开'H://\u netrc'”

2024-04-28 22:01:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在Windows上安装了Heroku CLI

登录时遇到以下故障:

Error: ENOENT: no such file or directory, open 'H:/_netrc'
heroku/7.41.1 win32-x64 node-v12.16.2

C:\Windows\system32>heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/cli/browser/2785a37e-18ec-43f0-a686-89cc597d2443
Logging in... done
Error: ENOENT: no such file or directory, open 'H:/_netrc'

C:\Windows\system32>```

Please help me with this.
Thanks,
Sagar                                                                                                                                   

Tags: ortonobrowserherokuwindowsloginerror
2条回答

对于windows,请执行以下步骤

  • cmd>;设置HomeDrive=c:/users/xxx
  • 再次运行heroku登录
  • 完成后,它将在目录c:/users/xxx中创建_netrc

试着从gitbash cmd运行它,我也遇到了同样的问题,它在我的案例中起作用

相关问题 更多 >