【问题标题】:Could not fetch metadata for bootstrap@git+ssh无法获取 bootstrap@git+ssh 的元数据
【发布时间】:2021-11-27 00:16:19
【问题描述】:

我正在尝试使用 npm install 安装 angular devkit 和其他依赖项。看到以下错误。

Could not fetch metadata for bootstrap@git+ssh://git@github.com/gios/Web-Standards-Bootstrap.git#05a343dddce91dd1577025267e07a35a5e GitUnknownError: An unknown git error occurred
npm WARN old lockfile     at makeError (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\git\lib\make-error.js:28:13)
npm WARN old lockfile     at C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\git\lib\spawn.js:36:26 {
npm WARN old lockfile   cmd: 'git',
npm WARN old lockfile   args: [
npm WARN old lockfile     '--no-replace-objects',
npm WARN old lockfile     'ls-remote',
npm WARN old lockfile     'ssh://git@github.com/gios/Web-Standards-Bootstrap.git'
npm WARN old lockfile   ],
npm WARN old lockfile   signal: null,
npm WARN old lockfile   stdout: '',
npm WARN old lockfile   stderr: 'git@github.com: Permission denied (publickey).\r\n' +
npm WARN old lockfile     'fatal: Could not read from remote repository.\n' +
npm WARN old lockfile     '\n' +
npm WARN old lockfile     'Please make sure you have the correct access rights\n' +
npm WARN old lockfile     'and the repository exists.\n'
npm WARN old lockfile 
}

【问题讨论】:

  • 你有权限使用ssh访问ssh://git@github.com/gios/Web-Standards-Bootstrap.git吗?

标签: angular angularjs git github npm


【解决方案1】:

可能有两种可能性:

  1. 提到的 git 存储库不存在/已从 github 中删除。
  2. 尝试访问 git 存储库的人无权访问它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-11
    • 2020-09-19
    • 2012-05-08
    • 1970-01-01
    • 2021-04-26
    • 1970-01-01
    • 2022-11-01
    • 1970-01-01
    相关资源
    最近更新 更多