我在 package.json 中有这个
"dependencies":{
"cdt-models": "git://gitscm.nabisco.com/it-gats-cdtechnologyarchitecture-cdtsdaas/cdt-models.git",
}
我运行npm install
,我收到这个错误:
npm ERR! Error while executing: npm ERR! /usr/local/bin/git ls-remote -h -t git://gitscm.cisco.com/it-gats-cdtechnologyarchitecture-cdtsdaas/cdt-models.git
npm 错误!npm 错误!致命:存储库“ https://gitscm.cisco.com/it-gats-cdtechnologyarchitecture-cdtsdaas/cdt-models.git/ ”未找到 npm ERR!npm 错误!退出错误代码:128
现在,我知道我可以从我当前的机器访问那个 git repo,因为我有正确的 SSH 密钥并且可以从那个 repo 中推送和拉取。
那么这里可能出了什么问题呢?
好吧,虽然它比纯 NPM 安装花费的时间长一点,但这似乎有效:
"cdt-models": "git+https://gitscm.nabisco.com/scm/it-gats-cdtechnologyarchitecture-cdtsdaas/cdt-models.git",
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句