我是Angular2的新手。我正在尝试执行此命令: - npm install --save angular / cdk
由于某种原因它问我输入用户名和密码。不确定这是系统用户/ pwd还是Github的。无论如何我输了如果错了。现在,我尝试执行相同的命令,它不会要求user / pwd,但会抛出错误:
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.
那么如何正确地重置或安装它? 感谢。