【发布时间】: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