0

我是 Angular2 的新手。我正在尝试执行此命令:- npm install --save angular/cdk

出于某种原因,它要求我输入用户名和密码。不确定这是系统用户/密码还是 Github 的。反正我输入错了。现在,我尝试执行相同的命令,它不要求用户/密码,但会引发错误:

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\USR_ADMIN\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror
git@github.com:angular/cdk.git C:\Users\USR_ADMIN\AppData\Roaming\npm-cache\_git-remotes\git-github-com-angular-cdk-git-xxxxxxxxxxxx....
npm ERR! Cloning into bare repository 'C:\Users\USR_ADMIN\AppData\Roaming\npm-cache\_git-remotes\git-github-com-angular-cdk-git-xxxxxxxxxxxx'...
npm ERR! Permission denied (publickey).
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.

那么如何正确重置或安装它呢?谢谢。

4

0 回答 0