Heroku cli (brew install heroku): ArgumentError: пользователь emixam23 не существует - PullRequest
0 голосов
/ 14 июля 2020

Я пытаюсь установить Heroku на свой Ma c, следуя do c https://devcenter.heroku.com/articles/heroku-cli#download -and-install , но у меня возникает проблема при выполнении команды для установки heroku:

MBP-de-Emixam23:~ emixam23$ brew install heroku
Updating Homebrew...
==> Installing heroku from heroku/brew
==> Downloading https://cli-assets.heroku.com/homebrew/node-12.16.2.tar.xz
Already downloaded: /Users/emixam23/Library/Caches/Homebrew/downloads/5787f9331a645901d1511ff2973c961e1037248779c2b5628ec2601273fb979b--node-12.16.2.tar.xz
==> Downloading https://cli-assets.heroku.com/heroku-v7.42.4/heroku-v7.42.4.tar.
Already downloaded: /Users/emixam23/Library/Caches/Homebrew/downloads/15cbf813f5f04cde9c65e953825e9514cfe5f571108d68a5284521d8592bcf4f--heroku-v7.42.4.tar.xz
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
Error: An exception occurred within a child process:
  ArgumentError: user emixam23 doesn't exist

Есть идеи? : o

Спасибо за любую помощь

1 Ответ

1 голос
/ 20 июля 2020

В моем случае проблема была вызвана переменной среды USER.

Чтобы узнать, могут ли переменные env быть причиной проблемы, выполните:

printenv | grep $TEXT_IN_ERROR

где переменная это следующее значение:

  ArgumentError: user $TEXT_IN_ERROR doesn't exist
...