【发布时间】:2015-08-22 11:40:59
【问题描述】:
我需要通过 npm 在 AWS Beanstalk 实例上安装一个私有 github 模块。
我正在使用 Github 个人访问令牌通过 github 进行身份验证并访问 repo。
我的package.json 列出了这样的依赖项:
"privatepackage": "git+https://jaf91ja9jasflkjasf98109asf10asdf:x-oauth-basic@github.com/user123/privatepackage.git"
但是,在 Beanstalk 上部署时出现以下错误:
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code 128
npm ERR! Command failed: git clone --template=/tmp/.npm/_git-remotes/_templates --mirror git@github.com...
npm ERR! Cloning into bare repository '/tmp/.npm/_git-remotes/git-github-com...
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.
【问题讨论】:
-
你有没有找到解决这个问题的好方法?我发现了类似的问题和解决方案(例如以下链接中的问题和解决方案),但想知道您是否找到了更好的解决方案。 stackoverflow.com/questions/24993092/…
标签: node.js amazon-web-services github npm amazon-elastic-beanstalk