Я пытаюсь установить модуль NPM из частного репозитория Bitbucket.
Я могу успешно запустить npm install
локально в моей системе, но на сервере происходит сбой.
Ошибкаэто:
npm ERR! Error while executing:
npm ERR! /bin/git ls-remote -h -t ssh://git@bitbucket.org/myorg/my-repo.git
npm ERR!
npm ERR!
npm ERR! (ssh-askpass:10260): Gtk-WARNING **: cannot open display: :0.0
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
Странно то, что клонирование репо на сервере работает нормально:
git clone git@bitbucket.org:myorg/my-repo
Таким образом, ключи SSH настроены правильно.