我已经在Windows上安装了Heroku CLI,
登录时面临以下故障:
Error: ENOENT: no such file or directory, open 'H:/_netrc'
heroku/7.41.1 win32-x64 node-v12.16.2
C:Windowssystem32>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:Windowssystem32>```
Please help me with this.
Thanks,
Sagar
对于 Windows,请按照以下步骤操作
- cmd>set HomeDrive=c:/users/xxx
- 再次运行 Heroku 登录
- 完成后,它将在目录 c:/users/xxx 中创建_netrc
尝试从 GIT BASH cmd 运行它,我遇到了同样的问题,它在我的情况下有效。