【发布时间】:2015-09-05 22:12:45
【问题描述】:
我的node.js 应用程序使用托管在 git repos 中的许多私有共享模块。我在 package.json 的依赖项块中使用如下 git URL:
"xxx-accountMgr": "git+ssh://git@github.xxx.ibm.com:xxx/lib-account-mgr.git",
在 npm install on ssh 期间“cf push”出现此错误时:
npm ERR! git clone --template=/home/vcap/.npm/_git-remotes/_templates --mirror ssh://git@github.xxx.ibm.com/ipaas/lib-account-mgr.git /home/vcap/.npm/_git-remotes/ssh-git-github-xxx-ibm-com-xxx-lib-account-mgr-git-bf65c10c: ssh: Could not resolve hostname github.xxx.ibm.com: Name or service not known
我预料到了这一点,因为我没有在 bluemix 中配置 ssh 密钥。那可能吗?如果没有,从 bluemix 中的私有 repo 安装模块的替代方法是什么?
【问题讨论】:
标签: npm cloud-foundry ibm-cloud